dbTalk Databases Forums  

urgent questions about Berkeley DB in Solaris

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss urgent questions about Berkeley DB in Solaris in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
joe.ntang@gmail.com
 
Posts: n/a

Default urgent questions about Berkeley DB in Solaris - 10-13-2005 , 07:24 AM






I am a student and I try to use Berkeley DB. When I install db.4.3.28
in Solaris, I find six files in the lib directory: libdb-4.3.a,
..ibdb-4.3.la, libdb-4.3.so, libdb-4.so, libdb.a and libdb.so, three
dynamic libs and two static libs. My first question is that which lib
should I use in my project or use some libs? The second question is
that even I compile the file in the get_started directory, there are
some link errors such as ild( undefined symbol ) int DB::close(
unsigned ) - referenced in the text segment of ../bin/MyDb.o, no
matter which lib I tried L

I need your help in urgency for this simple problem, thank you very
much. And you are welcome to write any help email directly to
ntang (AT) ieee (DOT) org.


Reply With Quote
  #2  
Old   
Gad Abraham
 
Posts: n/a

Default Re: urgent questions about Berkeley DB in Solaris - 10-18-2005 , 09:50 PM






joe.ntang (AT) gmail (DOT) com wrote:
Quote:
I am a student and I try to use Berkeley DB. When I install db.4.3.28
in Solaris, I find six files in the lib directory: libdb-4.3.a,
.ibdb-4.3.la, libdb-4.3.so, libdb-4.so, libdb.a and libdb.so, three
dynamic libs and two static libs. My first question is that which lib
should I use in my project or use some libs? The second question is
that even I compile the file in the get_started directory, there are
some link errors such as ild( undefined symbol ) int DB::close(
unsigned ) - referenced in the text segment of ../bin/MyDb.o, no
matter which lib I tried L

I need your help in urgency for this simple problem, thank you very
much. And you are welcome to write any help email directly to
ntang (AT) ieee (DOT) org.

I've been there before, so I have some tips that might get you started.

First, some of these files should just be symbolic links to other files:
libdb-4.so -> libdb-4.3.so, libdb.so -> libdb-4.3.so
This is useful in case you've got several versions installed at once.

Whether you use the dynamic or static ones depends on whether you can be
certain that whoever runs the program will have BDB libraries installed
in the same location and have the same (major) version. If they will,
then you can use the dynamic .so libraries. If they won't, then you can
use the static .a files. In the second case, every time you want to
upgrade BDB you'll have to recompile, but you can run your application
on any other machine without having to have BDB installed (same
architecture of course).

Good luck,
Gad

--
http://yallara.cs.rmit.edu.au/~gabraham
http://chookies.homeunix.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.