You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Joe Breeden <jb...@ena.com> on 2002/03/14 16:15:44 UTC
RE: Problem With DB_File Installation On Red-Hat Linux 7.1 [OT]
I had this problem the other day. And it was a screwy problem to fix. I had to get the latest BerkeleyDB, something like v4.0.14 (www.sleepycat.com) install it. Then reinstall the DB_File and I believe Storable modules making sure they pointed to the new install of BerkeleyDB. Of course, when I went through all of this I screwed up rpm somehow and other parts of my system so bad I surrendered and wiped my machine (which is my development desktop) and loaded RedHat 7.2. I think that trying to figure out the problem I uninstalled some RPMs I needed. If I had CAREFULLY followed the instructions for installing DB_File that came with the 4.0.14 BerkeleyDB install I think I would have been ok.
It has been a few weeks since I went through this and I have seen a squirrel or two since then and it was a bad experience so I have tried to block the memories of the awful awful day. I hope this helps, but I doubt it will. Good luck.
> -----Original Message-----
> From: James McKim [mailto:mckim@isrginc.com]
> Sent: Thursday, March 14, 2002 9:01 AM
> To: modperl@perl.apache.org
> Subject: Problem With DB_File Installation On Red-Hat Linux 7.1
>
>
> I'm trying to install DB_File on our Red-Hat Linux. 7.1 box and am
> getting an error about having 2 versions of BerkeleyDB installed. The
> log of the installation follows. Any help would be appreciated.
>
> James
>
> CPAN.pm: Going to build P/PM/PMQS/DB_File-1.803.tar.gz
>
> Parsing config.in...
> Looks Good.
> Checking if your kit is complete...
> Looks good
> Writing Makefile for DB_File
> cp DB_File.pm blib/lib/DB_File.pm
> AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File)
> cc -c -I/usr/local/BerkeleyDB/include -fno-strict-aliasing
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.803\"
> -DXS_VERSION=\"1.803\" -fpic
> -I/usr/local/lib/perl5/5.6.1/i686-linux/CORE -D_NOT_CORE
> -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c
> /usr/local/bin/perl -I/usr/local/lib/perl5/5.6.1/i686-linux
> -I/usr/local/lib/perl5/5.6.1
> /usr/local/lib/perl5/5.6.1/ExtUtils/xsubpp
> -noprototypes -typemap /usr/local/lib/perl5/5.6.1/ExtUtils/typemap
> -typemap typemap DB_File.xs > DB_File.xsc && mv DB_File.xsc DB_File.c
> cc -c -I/usr/local/BerkeleyDB/include -fno-strict-aliasing
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.803\"
> -DXS_VERSION=\"1.803\" -fpic
> -I/usr/local/lib/perl5/5.6.1/i686-linux/CORE -D_NOT_CORE
> -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t DB_File.c
> Running Mkbootstrap for DB_File ()
> chmod 644 DB_File.bs
> rm -f blib/arch/auto/DB_File/DB_File.so
> LD_RUN_PATH="/usr/lib" cc -shared -L/usr/local/lib version.o
> DB_File.o
> -o blib/arch/auto/DB_File/DB_File.so -ldb
> chmod 755 blib/arch/auto/DB_File/DB_File.so
> cp DB_File.bs blib/arch/auto/DB_File/DB_File.bs
> chmod 644 blib/arch/auto/DB_File/DB_File.bs
> /usr/bin/make -- OK
> Running make test
> PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib
> -I/usr/local/lib/perl5/5.6.1/i686-linux
> -I/usr/local/lib/perl5/5.6.1 -e
> 'use Test::Harness qw(&runtests $verbose); $verbose=0;
> runtests @ARGV;'
> t/*.t
> t/db-btree..........Can't load
> 'blib/arch/auto/DB_File/DB_File.so' for
> module DB_File: blib/arch/auto/DB_File/DB_File.so: undefined symbol:
> db_version at
> /usr/local/lib/perl5/5.6.1/i686-linux/DynaLoader.pm line 206.
> at t/db-btree.t line 23
> Compilation failed in require at t/db-btree.t line 23.
> BEGIN failed--compilation aborted at t/db-btree.t line 23.
> t/db-btree..........dubious
>
>
> Test returned status 255 (wstat 65280, 0xff00)
> t/db-hash...........Can't load
> 'blib/arch/auto/DB_File/DB_File.so' for
> module DB_File: blib/arch/auto/DB_File/DB_File.so: undefined symbol:
> db_version at
> /usr/local/lib/perl5/5.6.1/i686-linux/DynaLoader.pm line 206.
> at t/db-hash.t line 23
> Compilation failed in require at t/db-hash.t line 23.
> BEGIN failed--compilation aborted at t/db-hash.t line 23.
> t/db-hash...........dubious
>
>
> Test returned status 255 (wstat 65280, 0xff00)
> t/db-recno..........Can't load
> 'blib/arch/auto/DB_File/DB_File.so' for
> module DB_File: blib/arch/auto/DB_File/DB_File.so: undefined symbol:
> db_version at
> /usr/local/lib/perl5/5.6.1/i686-linux/DynaLoader.pm line 206.
> at t/db-recno.t line 23
> Compilation failed in require at t/db-recno.t line 23.
> BEGIN failed--compilation aborted at t/db-recno.t line 23.
> t/db-recno..........dubious
>
>
> Test returned status 255 (wstat 65280, 0xff00)
> FAILED--3 test scripts could be run, alas--no output ever seen
> make: *** [test_dynamic] Error 2
> /usr/bin/make test -- NOT OK
> Running make install
> make test had returned bad status, won't install without force
>
> --
> ************************************
> James McKim, President
> ISRG, Inc.
> V: (603) 497-3015 F: (603) 497-2599
> http://www.isrginc.com
>
> Strategic use of information and human capital to improve your
> bottom line is our bottom line.
>
>
>
Re: Problem With DB_File Installation On Red-Hat Linux 7.1 [OT]
Posted by Nicholas Studt <ns...@angrydwarf.org>.
> Joe Breeden wrote [ 2002/03/14 at 09:15:44 ]
>
> It has been a few weeks since I went through this and I have seen a
> squirrel or two since then and it was a bad experience so I have tried
> to block the memories of the awful awful day. I hope this helps, but I
> doubt it will. Good luck.
A much easier fix specfically for Redhat 7.1 is to correctly link
/usr/include/db.h to the same version of the /lib that DB_File is
picking up. Redhat has versions 1, 2, and 3 of Berkeley db installed to
support all of the applications. If you relink db.h, generally pointing
it to db2/db.h ( though it may be db3/db.h or db1/db.h depending on the
rest of the stuff you have installed ) will make DB_file happy.
>
> > -----Original Message-----
> > From: James McKim [mailto:mckim@isrginc.com]
> > Sent: Thursday, March 14, 2002 9:01 AM
> > To: modperl@perl.apache.org
> > Subject: Problem With DB_File Installation On Red-Hat Linux 7.1
> >
> >
> > I'm trying to install DB_File on our Red-Hat Linux. 7.1 box and am
> > getting an error about having 2 versions of BerkeleyDB installed. The
> > log of the installation follows. Any help would be appreciated.
| nicholas l studt <ns...@angrydwarf.org>
| GPG: 0EBE 38F2 342C A857 E85B 2472 B85E C538 E1E0 8808
`-------------------------------------------------------