On Tue, 7 Sep 2004, Darren Williams wrote:
> Hi David
>
> On Tue, 07 Sep 2004, David wrote:
>
> >
> > I'm trying to install netatalk which requires BerkeleyDB.4.2 I've
> > downloaded the tarball for db4 and built it according to instructions (I
> > think). The output of #make install is below. It looks OK to me. When I
> > configure netatalk, it tells me db4 isn't there (see below). What did I do
> > wrong?
> >
> > Any advice gratefully received.
> >
> > David.
> >
> >
> > FROM DB INSTALL:
> > _______________________________________________________________
> > #make install
> > specify the full pathname of the library, or use the `-LLIBDIR'
> > flag during linking and do at least one of the following:
> > - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
> > during execution
> > - add LIBDIR to the `LD_RUN_PATH' environment variable
> > during linking
> > - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
> > - have your system administrator add LIBDIR to `/etc/ld.so.conf'
> >
> > See any operating system documentation about shared libraries for
> > more information, such as the ld(1) and ld.so(8) manual pages.
> >
> > Installing DB utilities: /usr/local/BerkeleyDB.4.2/bin ...
> > cp -p .libs/db_archive /usr/local/BerkeleyDB.4.2/bin/db_archive
> > cp -p .libs/db_checkpoint /usr/local/BerkeleyDB.4.2/bin/db_checkpoint
> > cp -p .libs/db_deadlock /usr/local/BerkeleyDB.4.2/bin/db_deadlock
> > cp -p .libs/db_dump /usr/local/BerkeleyDB.4.2/bin/db_dump
> > cp -p .libs/db_load /usr/local/BerkeleyDB.4.2/bin/db_load
> > cp -p .libs/db_printlog /usr/local/BerkeleyDB.4.2/bin/db_printlog
> > cp -p .libs/db_recover /usr/local/BerkeleyDB.4.2/bin/db_recover
> > cp -p .libs/db_stat /usr/local/BerkeleyDB.4.2/bin/db_stat
> > cp -p .libs/db_upgrade /usr/local/BerkeleyDB.4.2/bin/db_upgrade
> > cp -p .libs/db_verify /usr/local/BerkeleyDB.4.2/bin/db_verify
> > Installing documentation: /usr/local/BerkeleyDB.4.2/docs ...
> >
>
> # LD_LIBRARY_PATH=/usr/local/BerkeleyDB/lib ./configure --with-bdb=/usr/local
>
> should do the trick
sadly, it didn't :( .. the path variable didn't make any difference at
all - configure didn't find anything.
I got the closest to a result doing the following (see below).. but as you
can see, it found the right version, and a header, but then looked for
files that weren't there (db4.2, db42, db4 etc...). All I can find is some
files in the lib directory called libdb4.2 etc.
To make matters worse.. apt-get tells me that I already have 4.2
installed, but I can't find it anywhere, and neither can netatalk's
configure.... I wish I knew what i was doing - I'm sure that would help!
________________________________________________________________________
#./configure --with-bdb=usr/local/BerkeleyDB.4.2/include
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.2/include/...yes
^^^
checking /usr/local/BerkeleyDB.4.2/include//db.h version >= 4.1.0... 4.2.52, yes
^^^
checking for Berkeley DB link (-ldb-4.2)... yes
^^^
checking Berkeley DB library version >= 4.1.0... no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.2/db4.2... no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.2/db42... no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.2/db4.1... no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.2/db41... no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.2/db4... no
checking for Berkeley DB headers in /usr/local/BerkeleyDB.4.2/... no
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html