-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opam package installation issue on an Apple silicon MacBook Pro #5783
Comments
Could you try again after a |
No change in output when running |
I think the instructions are outdated. The Also, before you install anything, make sure your copy of opam-repository is fresh:
That said, the install worked for me in a new 5.1.0 switch with this command:
Ignore the warning about needing package |
One piece of advice: for long extracts, use the |
Unfortunately, running Error report<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫 ┌─ The following actions failed │ λ build camlp-streams 5.0.1 │ λ build chrome-trace 3.12.2 │ λ build csexp 1.5.2 │ λ build dune-build-info 3.12.2 │ λ build either 1.0.0 │ λ build fix 20230505 │ λ build menhirCST 20231231 │ λ build menhirLib 20231231 │ λ build menhirSdk 20231231 │ λ build num 1.5 │ λ build ocaml-version 3.6.3 │ λ build ocamlfind 1.9.6 │ λ build ordering 3.12.2 │ λ build pp 1.2.0 │ λ build re 1.11.0 │ λ build result 1.5 │ λ build sexplib0 v0.16.0 │ λ build spawn v0.15.1 │ λ build trie 1.0.0 │ λ build xdg 3.12.2 │ λ build yojson 2.1.2 └─ ╶─ No changes have been performed |
What does |
It says:
I think you may be right. Edit: I did New which:
New
|
I’m guessing |
Everything appears to be working now. Thank you so much for your help! I would have never thought of a random homebrew package being the issue xD. |
This happens so often, I still think we should have this |
I am following a fairly straightforward tutorial for setting up an OCaml development environment for a university course which has me doing the following steps:
OCaml is well-supported in macOS, so the installation process is fairly straightforward.
brew install make m4 gcc pkg-config fswatch
opam
package manager for installing and maintaining different OCaml libraries. Execute the following lines from the terminal:~/.bashrc
,~/.zshrc
, and/or~/.profile
files (if they exist, otherwise create the file as appropriate for your shell, e.g.,~/.bashrc
):eval $(opam env)
ocamlc --version
from the terminal. You should get the output5.1.0
, which is the version of the OCaml compiler we have just installed.Except when I run the
opam install -y dune utop num menhir user-setup ocamlformat ocamlformat-rpc ocaml-lsp-server
command I am greeted with the following terminal output:No one, including the course staff, can provide any meaningful suggestions about these linker errors during the build process. For reference, I am on an M2 Pro MacBook Pro on macOS 14.2.1. GCC stats below:
I have tried uninstalling and reinstalling Xcode command line tools, and redoing each one of the steps in the instructor tutorial but to no avail. I have OCaml version 5.1.0 installed. Any suggestion on the matter would be greatly appreciated.
The text was updated successfully, but these errors were encountered: