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

Could not load libjulia shared library #18

Closed
joelreymont opened this issue Feb 29, 2024 · 3 comments
Closed

Could not load libjulia shared library #18

joelreymont opened this issue Feb 29, 2024 · 3 comments

Comments

@joelreymont
Copy link

Trying to compile the latest version

(OpenSpiel) pkg> st
Project OpenSpiel v0.1.5
Status `~/Work/Julia/OpenSpiel.jl/Project.toml`
  [1f15a43c] CxxWrap v0.15.0 `~/Work/Julia/CxxWrap.jl`
  [bd10a763] OpenSpiel_jll v1.2.0+1

I bump into an issue with finding the Julia shared library.

(OpenSpiel) pkg> precompile
Precompiling project...
        Info Given OpenSpiel was explicitly requested, output will be shown live
ERROR: LoadError: InitError: could not load library "/Users/joelr/.julia/artifacts/922c565d21204268e66e5361b57bcb495e92c36f/lib/libspieljl.dylib"
dlopen(/Users/joelr/.julia/artifacts/922c565d21204268e66e5361b57bcb495e92c36f/lib/libspieljl.dylib, 0x0001): Library not loaded: @rpath/libjulia.1.dylib
  Referenced from: <A5E54D80-E963-3639-9053-6D7DCD275663> /Users/joelr/.julia/artifacts/922c565d21204268e66e5361b57bcb495e92c36f/lib/libspieljl.dylib
  Reason: tried: '/Users/joelr/.julia/artifacts/922c565d21204268e66e5361b57bcb495e92c36f/lib/./libjulia.1.dylib' (no such file), '/Users/joelr/.julia/artifacts/922c565d21204268e66e5361b57bcb495e92c36f/lib/./libjulia.1.dylib' (no such file), '/Users/joelr/.julia/juliaup/julia-1.10.1+0.aarch64.apple.darwin14/lib/julia/libjulia.1.dylib' (no such file), '/Users/joelr/.julia/juliaup/julia-1.10.1+0.aarch64.apple.darwin14/lib/julia/../libjulia.1.dylib' (no such file), '/Users/joelr/.julia/juliaup/julia-1.10.1+0.aarch64.apple.darwin14/lib/libjulia.1.dylib' (no such file), '/usr/local/lib/libjulia.1.dylib' (no such file), '/usr/lib/libjulia.1.dylib' (no such file, not in dyld cache)

Maybe juliaup is wrong in not creating a symlink to libjulia.1.dylib. More likely, it's CxxWrap that should be loading libjulia.dylib, though.

❯ ls -la /Users/joelr/.julia/juliaup/julia-1.10.1+0.aarch64.apple.darwin14/lib/
total 464
drwxr-xr-x    7 joelr  staff     224 Feb 23 16:52 .
drwxr-xr-x    9 joelr  staff     288 Feb 23 16:52 ..
drwxr-xr-x  109 joelr  staff    3488 Feb 23 16:52 julia
-rwxr-xr-x    1 joelr  staff  235456 Feb 14 12:50 libjulia.1.10.1.dylib
drwxr-xr-x    3 joelr  staff      96 Feb 23 16:53 libjulia.1.10.1.dylib.dSYM
lrwxr-xr-x    1 joelr  staff      21 Feb 14 12:09 libjulia.1.10.dylib -> libjulia.1.10.1.dylib
lrwxr-xr-x    1 joelr  staff      21 Feb 14 12:09 libjulia.dylib -> libjulia.1.10.1.dylib
@joelreymont
Copy link
Author

I just checked on Ubuntu and got the same issue

Precompiling project...
        Info Given OpenSpiel was explicitly requested, output will be shown live 
ERROR: LoadError: InitError: could not load library "/home/papa/.julia/artifacts/539071873c5b2db866a64c7b849ef142c430f3e5/lib/libspieljl.so"
libjulia.so.1: cannot open shared object file: No such file or directory

The library is there, just not the libjulia.so.1 symlink.

./juliaup/julia-1.10.1+0.aarch64.linux.gnu/lib/libjulia.so
./juliaup/julia-1.10.1+0.aarch64.linux.gnu/lib/libjulia.so.1.10.1
./juliaup/julia-1.10.1+0.aarch64.linux.gnu/lib/libjulia.so.1.10

@joelreymont
Copy link
Author

joelreymont commented Feb 29, 2024

It's not an OpenSpiel issue so filing another one against juliaup.

@joelreymont
Copy link
Author

Tracked here.

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