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

static native image with musl Failed to load native library #1092

Open
mio-19 opened this issue Oct 13, 2024 · 1 comment
Open

static native image with musl Failed to load native library #1092

mio-19 opened this issue Oct 13, 2024 · 1 comment

Comments

@mio-19
Copy link

mio-19 commented Oct 13, 2024

I built a static native image with musl. I got following errors on runtime

Oct 13, 2024 9:51:54 PM org.jline.nativ.JLineNativeLoader log
WARNING: Failed to load native library:jlinenative-3.27.0-91a6c796ed1e1ed5-libjlinenative.so. osinfo: Linux/x86_64 (caused by: java.lang.UnsatisfiedLinkError: Can't load library: /tmp/jlinenative-3.27.0-91a6c796ed1e1ed5-libjlinenative.so, enable debug logging for stacktrace)
Failed to load native library:jansi-2.4.1-eafa4c479bafba9a-libjansi.so. osinfo: Linux/x86_64
java.lang.UnsatisfiedLinkError: Can't load library: /tmp/jansi-2.4.1-eafa4c479bafba9a-libjansi.so

Similar issue: #905

@hink084
Copy link

hink084 commented Dec 5, 2024

This might be due to how /tmp is mounted on your system. You may check to see if /tmp is mounted with the "noexec" option (cmd: findmnt). If so, you may try remounting /tmp without the "noexec" option and see if this resolves the issue.

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

2 participants