Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't access Berkeley DB - DB_File.so: dbopen (not found)

Status
Not open for further replies.

meloware

Technical User
Apr 9, 2004
7
US
I am trying to install and run a script package called 'LoginMD5_0.31'
I have the following binaries installed on my machine:
perl_s-5.8.3-sol26-sparc-local
db-1.85-sol26-sparc-local
md5-6142000-sol26-sparc-local

My unix box is too small to hold gcc, so I am using binaries.

I attempt to run (from a local shell) 'addUser.pl' and get the following:
$ perl addUser.pl username password meloware@yahoo.com
ld.so.1: perl: fatal: relocation error: file /usr/local/lib/perl5/5.8.3/sun4-sol
aris/auto/DB_File/DB_File.so: symbol dbopen: referenced symbol not found
Killed
$
I have tried to install several versions of Berkeley DB, with no luck.
does anybody have ideas on how I might get this to run?

I am new to UNIX. Is there a set of commands which allow me to see where Perl expects to find DB 1.85?
If I knew where it was looking, maybe a symbolic link in the right place might do the job.
I have spent at least 15 hours on this problem. I'd sure appreciate some help.
 
[/code]
#!/usr/bin/perl -w
use strict;

foreach my $current (sort keys %ENV)
{
print "$current: $ENV{$current}\n";
}
[/code]
 
Thank you uida1154 for the reply. I am not sure what you are suggesting, but I ran the code in the same directory as addUser.pl, (minus the [/code] statements) and got:

perl forum_help.cgi
HOME: /
HZ: 100
LOGNAME: clawson
MAIL: /var/mail/clawson
PATH: /usr/sbin:/usr/bin
PS1: #
PWD: /home/users/cclawson/public_html/cgi-bin
SHELL: /sbin/sh
TERM: vt100
TZ: GMT-5
USER: root

The setup instructions are not clear for LoginMD5_03.1, but it seems that I might need to install my own DB_File.so under Perl. This file does exist with the Perl installation I have, but I can't understand how it would know about the BerkeleyDB, I installed after. The DB_File.so is unmodified.
Other info which might offer clues:
I have a libdb.a at /usr/local/lib/libdb.a
and two ld.so.1's at
/usr/lib/ld.so.1
/etc/lib/ld.so.1

As far as this DB_File-1.808 I have. The Makefile.pl ran fine, but I am stuck because my /usr/ partition is too small to hold gcc. I'll persue this if the help people offer insist I rebuild and replace the DB_File.so already there.

I am also getting mentions that the LD_LIBRARY_PATH may need to be configured. I did a 'find' on this machine, and found no such file.

I'm sure my ignorance is really being exposed here, but I appreciate the help. The idea is to modify the LoginMD5 package to allow authorized users to download any of 250+ antique recordings I have restored.
 
do a seek for brewster kahle, the wayback machine, or archivists.org

2 pist to have a contribution on the technical aspect, but i could've said nothing, or something to help

i chose something that i hope will help

HTH
--Paul

Australian wine is "nassty", Guinness is worse
 
what does LoginMD5_0.31 do?

can it be replaced with crypt?


Kind Regards
Duncan
 
Well, I commented out the DB_File stuff, wrote my own file save, and am able to store MD5 checksummed accounts.
I suppose I could rewrite the scripts just to look at and append delimited text files, but I should understand what is going on.

Does Perl 5.8.3 already come with the Berkeley DB package? Maybe I created conflicts or deleted something installing and uninstalling these other downloaded packages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top