You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by James McKim <mc...@isrginc.com> on 2002/03/14 16:00:31 UTC

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

Posted by Michael <mi...@insulin-pumpers.org>.
> 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.
> 

This problem is easy to fix.

1) get and install BerkeleyDB-4.0

2) Re-install your DB_File-1.8.xx distribution (or later), set
the variables for INCLUDE and LIB in the config.in file to point to 
the BerkeleyDB 4.0 distribution

3) at the beginning of your httpsdctl or apachectl start file
include the following lines.

# fix up problem with C-lib database
export LD_PRELOAD=/usr/local/BerkeleyDB.4.0/lib/libdb.so

That's it....
Michael Robinton
BizSystems
4600 El Camino Real - Suite 206
Los Altos, CA 94022
Tel: 650 947-3351
Fax: 650 947-3356
michael@bizsystems.com