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

Workaround for #99 (could not load library on multiarch installs) #143

Merged
merged 2 commits into from
Dec 31, 2020

Conversation

liskin
Copy link
Contributor

@liskin liskin commented Nov 6, 2020

Description

Julia's embedding fails in jl_init if Julia is built and installed with
MULTIARCH_INSTALL=1, which it is in Debian and Ubuntu. It fails with:

> julia_setup()
Julia version 1.5.2 at location /usr/bin will be used.
ERROR: could not load library "/usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so"
/usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so: cannot open shared object file: No such file or directory

The problem is described at JuliaLang/julia#32614 (comment).

As a workaround, let's allow overriding the bindir by setting
JULIA_BINDIR environment variable (/usr/bin to fix this on Debian).

Related Issue

Fixes: #99

…nstalls)

Julia's embedding fails in jl_init if Julia is built and installed with
MULTIARCH_INSTALL=1, which it is in Debian and Ubuntu. It fails with:

    > julia_setup()
    Julia version 1.5.2 at location /usr/bin will be used.
    ERROR: could not load library "/usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so"
    /usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so: cannot open shared object file: No such file or directory

The problem is described at JuliaLang/julia#32614 (comment).

As a workaround, let's allow overriding the bindir by setting
JULIA_BINDIR environment variable (`/usr/bin` to fix this on Debian).

Fixes: JuliaInterop#99
@liskin liskin force-pushed the julia-multiarch-99 branch from f87b28a to 35d7a1e Compare November 6, 2020 11:15
@Non-Contradiction Non-Contradiction merged commit a46386b into JuliaInterop:master Dec 31, 2020
@Non-Contradiction
Copy link
Collaborator

Looks good to me. Thank you very much!

@liskin liskin deleted the julia-multiarch-99 branch December 31, 2020 17:51
Non-Contradiction added a commit to dgrominski/JuliaCall that referenced this pull request Dec 31, 2020
Try to incorporate the update to JuliaCall.cpp in JuliaInterop#143 to this PR. Not the best way, but should get things done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

julia_setup() crashes R because of a strange dynamic library path
2 participants