Created
November 16, 2016 03:44
-
-
Save yilaguan/322bb6db5fd2d27bc0b41e89d8231ef2 to your computer and use it in GitHub Desktop.
ERROR: in thread "main" java.lang.ExceptionInInitializerError and no jnind4j in java.library.path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The ERROR is as below: | |
Exception in thread "main" java.lang.ExceptionInInitializerError | |
at org.nd4j.nativeblas.NativeOpsHolder.<init>(NativeOpsHolder.java:16) | |
at org.nd4j.nativeblas.NativeOpsHolder.<clinit>(NativeOpsHolder.java:9) | |
at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.<init>(NativeOpExecutioner.java:37) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) | |
at java.lang.Class.newInstance(Class.java:442) | |
at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:5267) | |
at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5183) | |
at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:167) | |
at org.datavec.image.loader.NativeImageLoader.asMatrix(NativeImageLoader.java:258) | |
at org.datavec.image.loader.NativeImageLoader.asMatrix(NativeImageLoader.java:209) | |
at org.datavec.image.loader.NativeImageLoader.asMatrix(NativeImageLoader.java:194) | |
at org.datavec.image.recordreader.BaseImageRecordReader.next(BaseImageRecordReader.java:204) | |
at org.deeplearning4j.datasets.datavec.RecordReaderDataSetIterator.next(RecordReaderDataSetIterator.java:152) | |
at org.deeplearning4j.datasets.datavec.RecordReaderDataSetIterator.next(RecordReaderDataSetIterator.java:333) | |
at org.deeplearning4j.datasets.datavec.RecordReaderDataSetIterator.next(RecordReaderDataSetIterator.java:46) | |
at org.deeplearning4j.examples.dataExamples.ImagePipelineExample.main(ImagePipelineExample.java:104) | |
Caused by: java.lang.RuntimeException: ND4J is probably missing dependencies. For more information, please refer to: http://nd4j.org/getstarted.html | |
at org.nd4j.nativeblas.NativeOps.<clinit>(NativeOps.java:39) | |
... 19 more | |
Caused by: java.lang.UnsatisfiedLinkError: no jnind4j in java.library.path | |
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) | |
at java.lang.Runtime.loadLibrary0(Runtime.java:870) | |
at java.lang.System.loadLibrary(System.java:1122) | |
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:727) | |
at org.bytedeco.javacpp.Loader.load(Loader.java:502) | |
at org.nd4j.nativeblas.NativeOps.<clinit>(NativeOps.java:37) | |
... 19 more | |
Caused by: java.lang.UnsatisfiedLinkError: /tmp/javacpp8554828174351983/libjnind4j.so: /usr/lib/x86_64-linux-gnu/libgomp.so.1: version `GOMP_4.0' not found (required by /tmp/javacpp8554828174351983/libnd4j.so) | |
at java.lang.ClassLoader$NativeLibrary.load(Native Method) | |
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) | |
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824) | |
at java.lang.Runtime.load0(Runtime.java:809) | |
at java.lang.System.load(System.java:1086) | |
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:710) | |
... 21 more | |
###You can update the version of g++ and gcc. and You can find the answer as below: | |
http://askubuntu.com/questions/618474/how-to-install-the-latest-gcurrently-5-1-in-ubuntucurrently-14-04 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can find the answer in : http://askubuntu.com/questions/618474/how-to-install-the-latest-gcurrently-5-1-in-ubuntucurrently-14-04