niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
UnsatisfiedLinkError (again ?)
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Milo
*nix forums beginner


Joined: 12 Feb 2005
Posts: 2

PostPosted: Wed Feb 16, 2005 12:21 pm    Post subject: Re: UnsatisfiedLinkError (again ?) Reply with quote

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

PostPosted: Tue Feb 15, 2005 10:24 pm    Post subject: Re: UnsatisfiedLinkError (again ?) Reply with quote

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

PostPosted: Sat Feb 12, 2005 9:42 pm    Post subject: UnsatisfiedLinkError (again ?) Reply with quote

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:4Cool
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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 5:08 am | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts UnsatisfiedLinkError in Java UDF Rhino IBM DB2 6 Wed Apr 26, 2006 5:35 pm
No new posts BDB -- UnsatisfiedLinkError problem Phantom Berkeley DB 0 Thu Jul 21, 2005 6:03 pm

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
[ Time: 0.1282s ][ Queries: 17 (0.0508s) ][ GZIP on - Debug on ]