Closed raphaelrk closed 2 years ago
it looks like a similar issue than: https://github.com/ocaml/opam/issues/3650
Is it the same problem?
@kit-ty-kate I'm not sure - I ran brew unlink binutils
but am still running into these issues
Could you post the output of env
?
Relevant env
output:
CAML_LD_LIBRARY_PATH=/Users/raphaelrk/.opam/4.12.0/lib/stublibs:/usr/local/lib/ocaml/stublibs:/usr/local/lib/ocaml
OCAML_TOPLEVEL_PATH=/Users/raphaelrk/.opam/4.12.0/lib/toplevel
OPAMNOENVNOTICE=true
OPAM_SWITCH_PREFIX=/Users/raphaelrk/.opam/4.12.0
PATH=/Users/raphaelrk/.opam/4.12.0/bin:/Users/raphaelrk/.pyenv/shims:/Users/raphaelrk/.pyenv/bin:/Users/raphaelrk/Library/Android/sdk/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Genymotion.app/Contents/MacOS/tools/:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Users/raphaelrk/opt/miniconda3/bin
PKG_CONFIG_PATH=/Users/raphaelrk/.opam/4.12.0/lib/pkgconfig:
SHELL=/usr/local/bin/fish
SHLVL=1
TERM=xterm-256color
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=440
USER=raphaelrk
__CFBundleIdentifier=com.apple.Terminal
__fish_bin_dir=/usr/local/Cellar/fish/2.2.0/bin
__fish_datadir=/usr/local/Cellar/fish/2.2.0/share/fish
__fish_help_dir=/usr/local/Cellar/fish/2.2.0/share/doc/fish
__fish_sysconfdir=/usr/local/Cellar/fish/2.2.0/etc/fish
Got menhir (another library I was having issues with) to install by running brew install menhir
which may be a clue - brew formula page. Unfortunately no existing brew formulae for utop / merlin / graphics.
What do type ranlib
and type ld
return in your terminal ?
@dbuenzli
~> type ranlib
ranlib is /usr/bin/ranlib
~> type ld
ld is /usr/bin/ld
I don't really know what's happenning. Check that your cc
is also in /usr/bin
. Other than that maybe try to opam switch remove
the switch and start over.
Removing the switch and starting with a fresh one fixed the issue for me!
Having issues with the installation of many opam packages, all stating "Undefined symbols for architecture x86_64".
Examples
Trying to install merlin:
Trying to install graphics:
Trying to install utop:
opam config report
More information
I'm on macOS Big Sur 11.5.2, have plenty of storage, and have gotten some packages to install: