[Scilab-Dev] path to jhdf5

Sylvestre Ledru sylvestre.ledru at scilab-enterprises.com
Sat Jun 30 16:55:24 CEST 2012


Hello Arvid,

Le 27/06/2012 14:44, Arvid Rosén a écrit :
> Hi,
>
> I am running the latest git version on Mac OS X 10.7 and have the following annoying problem. Scilab combiles and runs fin, as long as I start it from within the git source tree, by executing "bin/scilab" from the terminal. However, if I do a "sudo make install", it wont run anymore, but instead ends up with the following error:
>
> java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path
[...]
> at org.scilab.modules.hdf5.jhdf5load.forceLoad(Unknown Source)
>
> Do I need to do anything special with hdf and java to make this work? I have checked out all the thirdparty dependencies in a folder named thirdparty in the scilab tree, and I can see jhdf5.jar in there. Does this file need to go somewhere else too?
>
>
Here, Scilab is complaining about the native library. Beside thirdparty,
we provide also a bin/ directory which contains the native libraries.
You should find a file called libjhdf5.jnilib.

If Scilab works when started from the source tree, I guess you have this
file.
When doing the "make install", it won't copy this file (because it is
not a file Scilab per say).
So, you will have to either:
* update etc/librarypath.xml to add the path to this lib
* copy this library to a Mac OS X standard path .

Hope this helps,
Sylvestre



More information about the dev mailing list