Skip to content
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

Library not loaded: /opt/homebrew/opt/boost/lib/libboost_thread-mt.dylib #32

Open
rhugga opened this issue Oct 10, 2023 · 0 comments
Open

Comments

@rhugga
Copy link

rhugga commented Oct 10, 2023

I'm trying to build a go binary using this library and hitting an error I can't work around. Searched and searched and find nothing.

$ ./bin/list_hosts
dyld[51973]: Library not loaded: /opt/homebrew/opt/boost/lib/libboost_thread-mt.dylib
  Referenced from: <D7216ADA-4CD1-38F1-9CEC-3A16FE4BE558> /opt/homebrew/Cellar/ceph-client/17.2.5_1/lib/libcephfs.2.0.0.dylib
  Reason: tried: '/opt/homebrew/opt/boost/lib/libboost_thread-mt.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/boost/lib/libboost_thread-mt.dylib' (no such file), '/opt/homebrew/opt/boost/lib/libboost_thread-mt.dylib' (no such file), '/usr/local/lib/libboost_thread-mt.dylib' (no such file), '/usr/lib/libboost_thread-mt.dylib' (no such file, not in dyld cache)Library not loaded: /opt/homebrew/opt/boost/lib/libboost_thread-mt.dylib
  Referenced from: <2EE2B710-5D0F-327C-9C2C-64A87096A771> /opt/homebrew/Cellar/ceph-client/17.2.5_1/lib/librados.2.0.0.dylib
  Reason: tried: '/opt/homebrew/opt/boost/lib/libboost_thread-mt.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/boost/lib/libboost_thread-mt.dylib' (no such file), '/opt/homebrew/opt/boost/lib/libboost_thread-mt.dylib' (no such file), '/usr/local/lib/libboost_thread-mt.dylib' (no such file), '/usr/lib/libboost_thread-mt.dylib' (no such file, not in dyld cache)
Abort trap: 6

No idea here. Followed the instruction for this library to the letter. I'm using the following env variables:

CGO_CFLAGS="-I/opt/homebrew/Cellar/ceph-client/17.2.5_1/include"
CGO_LDFLAGS="-L/opt/homebrew/Cellar/ceph-client/17.2.5_1/lib"

Someone suggested copying the libs to /usr/local/lib, so I have this now:

$ ls -la /usr/local/lib/
total 144440
drwxr-xr-x  18 root  wheel       576 Oct 10 11:26 .
drwxr-xr-x   9 root  wheel       288 Jun 28 16:41 ..
drwxr-xr-x   3 root  wheel        96 Jan  6  2023 docker
-rw-r--r--   1 root  wheel  10244000 Oct 10 11:21 libceph-common.2.dylib
-rw-r--r--   1 root  wheel  10244000 Oct 10 11:21 libceph-common.dylib
-rw-r--r--   1 root  wheel   2386208 Oct 10 11:21 libcephfs.2.0.0.dylib
-rw-r--r--   1 root  wheel   2386208 Oct 10 11:21 libcephfs.2.dylib
-rw-r--r--   1 root  wheel   2386208 Oct 10 11:21 libcephfs.dylib
-rw-r--r--   1 root  wheel   1848320 Oct 10 11:21 librados.2.0.0.dylib
-rw-r--r--   1 root  wheel   1848320 Oct 10 11:21 librados.2.dylib
-rw-r--r--   1 root  wheel   1848320 Oct 10 11:21 librados.dylib
-r--r--r--   1 root  wheel    235872 Oct 10 11:21 libradosstriper.1.0.0.dylib
-r--r--r--   1 root  wheel    235872 Oct 10 11:21 libradosstriper.1.dylib
-r--r--r--   1 root  wheel    235872 Oct 10 11:21 libradosstriper.dylib
-rw-r--r--   1 root  wheel  13341584 Oct 10 11:21 librbd.1.17.0.dylib
-rw-r--r--   1 root  wheel  13341584 Oct 10 11:21 librbd.1.dylib
-rw-r--r--   1 root  wheel  13341584 Oct 10 11:21 librbd.dylib
drwxr-xr-x   3 root  wheel        96 Oct 17  2022 python3.10

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant