Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

problems installing Berkeley DB / DB_File

by reasonablekeith (Deacon)
on Jun 07, 2006 at 10:34 UTC ( [id://554002]=perlquestion: print w/replies, xml ) Need Help??

reasonablekeith has asked for the wisdom of the Perl Monks concerning the following question:

One of our guys here accidentally deleted an install of Berkeley DB on a solaris server, and are now having trouble with a script using DB_File ( no surprises there then :) )

The errors in the logs look similar to those on the make test so I’m going to switch to read_more, as it’s going to be a long post...

Still with me? Excellent.

The error coming out in the log file is, after trying to run the previously working scripts is...

ld.so.1: perl: fatal: relocation error: file /cma/cma_proj/perl_lib/li +b/5.6.1/sun4-solaris/auto/DB_File/DB_File.so: symbol perl_get_sv: ref +erenced symbol not found
I’ve no idea what it means but it does look suspiciously like the error output on the make test
make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/li +b/perl5/5. 6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw +(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t Can't load '/usr/local/lib/perl5/5.6.1/sun4-solaris/auto/IO/IO.so' for + module IO : ld.so.1: perl: fatal: relocation error: file /usr/local/lib/perl5/5. +6.1/sun4-s olaris/auto/IO/IO.so: symbol perl_get_sv: referenced symbol not found +at /usr/lo cal/lib/perl5/5.6.1/sun4-solaris/XSLoader.pm line 75. at /usr/local/lib/perl5/5.6.1/sun4-solaris/IO.pm line 9 Compilation failed in require at /usr/local/lib/perl5/5.6.1/sun4-solar +is/IO/Hand le.pm line 256. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.6.1/sun4-s +olaris/IO/ Handle.pm line 256. Compilation failed in require at /usr/local/lib/perl5/5.6.1/sun4-solar +is/IO/Seek able.pm line 101. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.6.1/sun4-s +olaris/IO/ Seekable.pm line 101. Compilation failed in require at /usr/local/lib/perl5/5.6.1/sun4-solar +is/IO/File .pm line 112. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.6.1/sun4-s +olaris/IO/ File.pm line 112. Compilation failed in require at /usr/local/lib/perl5/5.6.1/FileHandle +.pm line 9 . Compilation failed in require at /usr/local/lib/perl5/5.6.1/Test/Harne +ss.pm line 7. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.6.1/Test/H +arness.pm line 7. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. *** Error code 255 make: Fatal error: Command failed for target `test_dynamic'
I am assured that the re-install of Berkeley DB went well. It’s probably with mentioning that the make install seems to go okay which look like this...
make install Installing /env04/sas/cma/cma_proj/perl_lib/lib/5.6.1/sun4-solaris/aut +o/DB_File/ DB_File.so Files found in blib/arch: installing files in blib/lib into architectu +re depende nt library tree Installing /env04/sas/cma/cma_proj/perl_lib/man/man3/DB_File.3 Writing /env04/sas/cma/cma_proj/perl_lib/lib/5.6.1/sun4-solaris/auto/D +B_File/.pa cklist Appending installation info to /env04/sas/cma/cma_proj/perl_lib/lib/5. +6.1/sun4-s olaris/perllocal.pod
I’m really not sure where to start here. I don’t know much about what they’re doing. The guy who wrote this is long gone, and they nolonger have any perl expertise in their team, hence me being a mediator here.

As always, any help greatly appreciated. I’m getting access to these servers, so will be able to provide anymore detail as required

Thanks, Rob

PS: I realise that there is a glaring omission in this post, namely that actual line causing the problem. I’d like to take this opportunity to assure the reader that I’m working on it. :)

---
my name's not Keith, and I'm not reasonable.

Replies are listed 'Best First'.
Re: problems installing Berkeley DB / DB_File
by gellyfish (Monsignor) on Jun 07, 2006 at 10:48 UTC

    The

    ld.so.1: perl: fatal: relocation error: file /cma/cma_proj/perl_lib/li +b/5.6.1/sun4-solaris/auto/DB_File/DB_File.so: symbol perl_get_sv: ref +erenced symbol not found
    Looks horribly like either your libperl.so (or libperl.a) has gone away or that the perl has been replaced by a statically built one where you had a dynamic one before. Either way it really does look like you have bigger problems than installing the module, I'd say your whole Perl installation is broken and probably needs to be reinstalled.

    /J\

A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://554002]
Approved by gellyfish
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-03-29 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found