|
|
|
|
|
|
| Author |
Message |
Milo *nix forums beginner
Joined: 12 Feb 2005
Posts: 2
|
Posted: Wed Feb 16, 2005 12:21 pm Post subject:
Re: UnsatisfiedLinkError (again ?)
|
|
|
Hello Michael,
Thanks for your response.
Just made a clean build and install using the buildall script with a
--prefix parameter setting, as you suggested.
The result is the same. Running an example ends up with the same
exception.
output ldd /opt/bdbxml-2.0.9/lib/libdb_java-4.3.so:
libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000002a95768000)
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a9587d000)
/lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
(0x000000552aaaa000)
If you are interested in the logfiles of the latest build, I can send
them to you.
Kind regards
Milo |
|
| Back to top |
|
 |
Michael Cahill *nix forums Guru Wannabe
Joined: 26 May 2005
Posts: 219
|
Posted: Tue Feb 15, 2005 10:24 pm Post subject:
Re: UnsatisfiedLinkError (again ?)
|
|
|
Hi Milo,
| Quote: | /opt/bdbxml-2.0.9/lib/libdb_java-4.3.so:
/opt/bdbxml-2.0.9/lib/libdb_java-4.3.so: cannot open shared object
file: No such file or directory
|
Can you try this?
ldd /opt/bdbxml-2.0.9/lib/libdb_java-4.3.so
I'm not sure why this is failing, but it may be because you moved the
files from the installation directory by hand. It's usually simpler to
set the installation directory with '--prefix=...' when you run the
buildall.sh script.
Regards,
Michael. |
|
| Back to top |
|
 |
Milo *nix forums beginner
Joined: 12 Feb 2005
Posts: 2
|
Posted: Sat Feb 12, 2005 9:42 pm Post subject:
UnsatisfiedLinkError (again ?)
|
|
|
Hi all,
The last couple of days i have been trying to get a sample of the
sleepycat xml database to work.
Unfortunately, running the example keeps throwing a
UnsatisfiedLinkError at me. Solutions in old message threads
addressing the same issue did not solve this problem.
SuSE linux 9.1 for amd64 runs on my machine with a 2.6.5 kernel. I
practiced the same routine on a SuSE 9.1 Pentium IV machine with
exactly the same result. Tried Java versions 1.4.2 and 1.5.0.
build dir: /root/tmp/dbxml-2.0.9
deploy dir: /opt/bdbxml-2.0.9
- building xml db: ./buildall.sh -b 64 --enable-java
- moved files from builddir/install to deploydir/
- added deploydir/lib to /etc/ld.so.conf
- ran ldconfig
- ran ldconfig -p | grep dbxml. result was
libxquery-1.0.so (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libxquery-1.0.so
libxerces-c.so.26 (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libxerces-c.so.26
libxerces-c.so (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libxerces-c.so
libpathan.so.3 (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libpathan.so.3
libpathan.so (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libpathan.so
libdbxml_java-2.0.so (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libdbxml_java-2.0.so
libdbxml-2.0.so (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libdbxml-2.0.so
libdb_java-4.3.so (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libdb_java-4.3.so
libdb_cxx-4.3.so (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libdb_cxx-4.3.so
libdb-4.3.so (libc6,x86-64) =>
/opt/bdbxml-2.0.9/lib/libdb-4.3.so
- set CLASSPATH to
/opt/bdbxml-2.0.9/lib/db.jar:/opt/bdbxml-2.0.9/lib/dbxml.jar:/opt/bdbxml-2.0.9/lib/dbxmlexamples.jar
- set LD_LIBRARY_PATH to /opt/bdbxml-2.0.9/lib
- created a default container using dbxml_shell /opt/bdbxml-2.0.9/db
- ran an example:
java com.sleepycat.dbxml.examples.gettingStarted.exampleLoadContainer
-h /opt/bdbxml-2.0.9/db -p /opt/bdbxml-2.0.9/examples/xmlData/
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/opt/bdbxml-2.0.9/lib/libdb_java-4.3.so:
/opt/bdbxml-2.0.9/lib/libdb_java-4.3.so: cannot open shared object
file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at
com.sleepycat.db.internal.db_javaJNI.<clinit>(db_javaJNI.java:4
at com.sleepycat.db.internal.DbEnv.<init>(DbEnv.java:191)
at
com.sleepycat.db.EnvironmentConfig.createEnvironment(EnvironmentConfig.java:738)
at
com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:691)
at com.sleepycat.db.Environment.<init>(Environment.java:30)
at
com.sleepycat.dbxml.examples.gettingStarted.exampleLoadContainer.createEnv(exampleLoadContainer.java:147)
at
com.sleepycat.dbxml.examples.gettingStarted.exampleLoadContainer.loadXmlFiles(exampleLoadContainer.java:160)
at
com.sleepycat.dbxml.examples.gettingStarted.exampleLoadContainer.main(exampleLoadContainer.java:79)
At this point i am at a loss. Why does it complain about a missing lib,
even it is acually there?
Any help is appreciated
Milo |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 5:08 am | All times are GMT
|
|
Read Manga Online | Homeowner Loans | Bleach | Credit Cards | Online Advertising
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|