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

java.lang.UnsatisfiedLinkError: /tmp/libxgboost4j7685087432198312716.so: libgomp.so.1: cannot open shared object file: No such file or directory #1879

Closed
gypsysunny opened this issue Dec 16, 2016 · 4 comments

Comments

@gypsysunny
Copy link

For bugs or installation issues, please provide the following information.
The more information you provide, the more easily we will be able to offer
help and advice.

Environment info

Operating System: centos 6.5

Compiler: gcc-4.8.5

Package used (python/R/jvm/C++): jvm

xgboost version used: 0.7

Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/libxgboost4j7685087432198312716.so: libgomp.so.1: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
at java.lang.Runtime.load0(Runtime.java:795)
at java.lang.System.load(System.java:1062)
at ml.dmlc.xgboost4j.java.NativeLibLoader.loadLibraryFromJar(NativeLibLoader.java:67)
at ml.dmlc.xgboost4j.java.NativeLibLoader.smartLoad(NativeLibLoader.java:153)
at ml.dmlc.xgboost4j.java.NativeLibLoader.initXGBoost(NativeLibLoader.java:41)
at ml.dmlc.xgboost4j.java.DMatrix.(DMatrix.java:38)
ml.dmlc.xgboost4j.scala.DMatrix.(DMatrix.scala:84)

the libxgboost4j.so exists in the folder of /lib in xgboost4j-0.7.jar

@boegel
Copy link

boegel commented Nov 24, 2017

@gypsysunny Did you ever figure out this problem? I'm running into something very similar (but with /lib64/libm.so.6 rather than libgomp.so.1.

To the xgboost developers: it seems like a libxgboost4j*.so is getting built during a run, but then running something that requires this library is done in a different environment?

@PowerToThePeople111
Copy link

PowerToThePeople111 commented Dec 4, 2017

I have the very same error. Someone in a related post mentioned installing gcc on the spark nodes. I had no chance tho to try that til tomorrow.

See #1033 for further reference.

My libxgboost4j.so is contained in the lib folder in xgboost4j-07.jar tho.

@laaron2008
Copy link

@gypsysunny Did you resolve the problem ? java.lang.UnsatisfiedLinkError: /tmp/libxgboost4j7685087432198312716.so: libgomp.so.1: cannot open shared object file: No such file or directory

@hcho3
Copy link
Collaborator

hcho3 commented Aug 30, 2018

XGBoost has dependency on libgomp1, which is OpenMP runtime for GCC. You should install libgomp1

@lock lock bot locked as resolved and limited conversation to collaborators Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants