LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 08-04-2011, 07:54 AM   #1
vectrum
Member
 
Registered: Jul 2011
Posts: 59

Rep: Reputation: Disabled
./configure problem for libsf library due to apparently missing libdb library.


Hello,

./configure script fails to configure libsf. Please check the following last few lines of configure script error.

checking for db1/db.h... no
checking for db.h... yes
checking for dbopen in -ldb1... no
configure: error: No libdb? No libsf.

But find command shows the following;

/usr/lib/libdb-4.2.so
/usr/lib/libdb-4.a
/usr/lib/libdb-4.2.la
/usr/lib/libdb-4.4.la
/usr/lib/libdb-4.so
/usr/lib/libdb.a
/usr/lib/libdb.so
/usr/lib/libdb-4.4.so
/usr/lib/libdb-4.4.a
/lib/libdb-4.2.so
/lib/libdb-3.3.so
/lib/libdb-3.1.so
/lib/libdb-4.4.so

It seems the file libdb does exist. man dbopen displays man page
for dbopen. I also tried to ln -s /usr/lib/libdb.a and libdb.so /lib dir but all were in vain.

Please help. Thank you.
 
Old 08-04-2011, 08:31 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,218

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
Welcome to LQ.

'libdb1' is required. ( Not libdb-3.x or -4.x )

Install libdb1-devel or whatever the name is for your Linux OS.
http://linuxsilo.net/docs/smart-questions_en.html
 
Old 08-04-2011, 01:13 PM   #3
vectrum
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Hello,

Thank you very much for the help but I couldn't find any db1 package.
I use slackware 13. I thought the required file was db instead of db1 because the readme file of libsf states the following;
-------------------------------------------------
1. You'll need to build and install:
a. libnet 1.1.0 (http://www.packetfactory.net/libnet)
b. libpcap 0.6.x+ (http://www.tcpdump.org)
c. libdb old API - should be included with most modern OS releases -
(http://www.sleepycat.com/)
------------------------------------------------
So you see the subsection "c". I have downloaded and installed a tarball libdb1_1.85.4-osso9+0m5.tar.gz from
http://maemo.org/packages/source/vie...5.4-osso9+0m5/ build it. It produced the following files;
libdb.so.1.85.4, libdb.a and a directory "include" and inside it the following header files; db.h, compat.h, mpool.h, mdbm.h

make install also failed. It tried to create two directories under root such as /root/usr/lib and /root/include.

Did I download the right package? I can't find the libdb1 package.
 
Old 08-04-2011, 01:43 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,218

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
Quote:
.. should be included with most modern OS releases
The year is 2002 : Please have a look at the "libsf" time stamp.
README : 18 Feb 2002. The files in src/ : Same date.


Libsf is buggy, and will not compile on any Linux. AFAIK.
( The oldest I gave a try with libsf, was Debian Etch /// gcc-2.95.)

..
 
1 members found this post helpful.
Old 08-04-2011, 05:08 PM   #5
vectrum
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Thanks again. got it and stopped running after libsf. I dont need it. Sanity prevails.
But one hitch still remains. libdb1? vanished? But really i don't need all these. I'm noob in c and *nix and trying to learn programming *nix so getting confused by seeing so many libs which offer so many things.
Well, thanks again and very warm regards...
 
Old 08-04-2011, 09:01 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,218

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
'db1-1.85-i386-1.txz' for Slackware 13, 32bits, section "pasture"
ftp://ftp.slackware.org.uk/slackware....85-i386-1.txz


No package for x86_64.
( And an attempt to build a 64bits package fails
ftp://ftp.slackware.org.uk/slackware...re/source/db1/ )

..

Last edited by knudfl; 08-04-2011 at 09:04 PM.
 
1 members found this post helpful.
Old 08-05-2011, 02:11 PM   #7
vectrum
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
I installed libdb1 and libsf (downloaded again from packetfactory openwall repository) found no error in its configure script but didn't compile.
you're correct; it won't compile. Thanks again. I came to know about another slack package repo.
a bagful of thanks...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failure building multiple apps due to missing library jscore JazzItSelf Slackware 5 01-29-2011 02:38 AM
ldd reports shared library missing, but library exists on disk athv_gr Linux - Newbie 7 05-13-2009 12:31 PM
knoppix library missing ... booting problem... nilathinesh Linux - Distributions 2 08-26-2007 11:48 PM
NSS will not compile due to nspr4 library error juliensteel Linux - General 0 01-21-2005 08:40 AM
Problem due to STL Library vipinsharma Programming 9 06-01-2004 03:46 AM


All times are GMT -5. The time now is 01:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration