Couldn't find the resource libjblas.jnilib

101 views
Skip to first unread message

Jesse

unread,
Jul 1, 2010, 8:19:00 AM7/1/10
to jblas-users
Hi, I'm moving this from the GitHub website. We've determined that
is it is some problem with Mac OS X 10.5 as I have also tried the
jBLAS libraries on a Mac OS X 10.6 and it worked great. (I am very
impress with the speed!)

On the Mac OS X 10.5, I tried the tests....

SanityChecks.checkVectorAddition();
SanityChecks.checkEigenvalues();

Starting jBLAS EigenvalueDecomposition
checking vector addition... ok
-- org.jblas ERROR Couldn't load copied link file:
java.lang.UnsatisfiedLinkError: /private/var/folders/dy/dyBwkLfgEIC3mw-
aTd3uj++++Tc/-Tmp-/jblas244329846253217554libjblas_arch_flavor.jnilib:
no suitable image found. Did find: /private/var/folders/dy/
dyBwkLfgEIC3mw-aTd3uj++++Tc/-Tmp-/
jblas244329846253217554libjblas_arch_flavor.jnilib: unknown required
load command 0x80000022.

Exception in thread "main" java.lang.UnsatisfiedLinkError:
org.jblas.util.ArchFlavor.SSELevel()I
at org.jblas.util.ArchFlavor.SSELevel(Native Method)
at org.jblas.util.ArchFlavor.archFlavor(ArchFlavor.java:69)
at org.jblas.util.LibraryLoader.addFlavor(LibraryLoader.java:179)
at org.jblas.util.LibraryLoader.loadLibrary(LibraryLoader.java:103)
at org.jblas.NativeBlas.(NativeBlas.java:84)
at org.jblas.util.SanityChecks.checkEigenvalues(SanityChecks.java:122)
at gs.rrEmma.EigenTester.main(EigenTester.java:81)


if you tell it to override the ArchFlavor, that seems to take care of
that problem and the new issue is finding the native libraries....


SanityChecks.checkVectorAddition();
ArchFlavor.overrideArchFlavor("SSE3");
SanityChecks.checkEigenvalues();

The output is:

Starting jBLAS EigenvalueDecomposition
checking vector addition... ok

-- org.jblas ERROR Couldn't load copied link file:
java.lang.UnsatisfiedLinkError: /private/var/folders/dy/dyBwkLfgEIC3mw-
aTd3uj++++Tc/-Tmp-/
jblas5360203922203535106libjblas_arch_flavor.jnilib: no suitable image
found. Did find: /private/var/folders/dy/dyBwkLfgEIC3mw-aTd3uj++++Tc/-
Tmp-/jblas5360203922203535106libjblas_arch_flavor.jnilib: unknown
required load command 0x80000022.

Exception in thread "main" java.lang.UnsatisfiedLinkError: Couldn't
find the resource libjblas.jnilib.
at org.jblas.util.LibraryLoader.loadLibrary(LibraryLoader.java:119)
at org.jblas.NativeBlas.(NativeBlas.java:84)
at org.jblas.util.SanityChecks.checkEigenvalues(SanityChecks.java:122)
at gs.rrEmma.EigenTester.main(EigenTester.java:81)

Mikio Braun

unread,
Jul 6, 2010, 6:22:44 AM7/6/10
to jblas...@googlegroups.com
Hi Jesse,

I've searched around the web a bit, and it seems to be a general
problem when compiling on 10.6.x for 10.5.x systems. Apparently, they
added a few new features to the dynamic linking procedure which is not
recognized on 10.5.x.

Here is a link to a discussion on the topic:

http://stackoverflow.com/questions/1440456/static-libraries-in-version-cross-compiled-program

It seems that passing "-no_compact_linkedit" to the linker might help,
although I don't have the means to verify that. Alternatively, one
would have to recompile everything on a 10.5.x system.

I'll try to recompile jblas with the above option and then you could
try out that jar file. Alternatively, you could upgrade to 10.6.x of
course ;)

-M


--
Dr. Mikio Braun, Beckerstr. 11, 12157 Berlin
Privat: 030 / 42 10 56 42, Büro: 030 / 314 78627, Handy: 0172 / 97 45 676

Reply all
Reply to author
Forward
0 new messages