You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume that it is built on Ubuntu and only work on Ubuntu or similar distros.
I am on Archlinux. I installed llvm17 from aur. My llvm17 is in /usr/lib/llvm17/ so I created symlinks
sudo ln -s /usr/lib/llvm17/ /usr/lib/llvm-17
$ ./sn-bindgen-x86_64-pc-linux
./sn-bindgen-x86_64-pc-linux: error while loading shared libraries: libclang-17.so.17: cannot open shared object file: No such file or directory
I saw this so I created symlink from /usr/lib/llvm-17/lib/libclang.so.17 to /usr/lib/llvm-17/lib/libclang-17.so.17
$ ./sn-bindgen-x86_64-pc-linux
./sn-bindgen-x86_64-pc-linux: error while loading shared libraries: libclang-17.so.17: cannot open shared object file: No such file or directory
Finally I successfully run the binary with LD_LIBRARY_PATH
The true fix would be to provide a statically linked binary: #13 but the process itself has a lot of moving parts and I haven't even started yet.
In the interim, I'm not familiar at all with how binaries are distributed for various linux distros without having to provide lots of os-specific binaries. If you have any resources to link on how other people do it, I will consider doing the work to make it more portable.
I guess one can attempt to modify the rpath (or lpath?) of the binary after it's already built to provide more fallback options..
You can do things like -Wl,-rpath,/usr/local/lib at linking time to add some paths to the rpath, but I don't know if that's a thing people do... I would suggest looking at some other binaries that do this, and seeing if they do that with readelf or the like.
I assume that it is built on Ubuntu and only work on Ubuntu or similar distros.
I am on Archlinux. I installed llvm17 from aur. My llvm17 is in
/usr/lib/llvm17/
so I created symlinksI saw this so I created symlink from /usr/lib/llvm-17/lib/libclang.so.17 to /usr/lib/llvm-17/lib/libclang-17.so.17
Finally I successfully run the binary with LD_LIBRARY_PATH
The text was updated successfully, but these errors were encountered: