Operating System - HP-UX
1752401 Members
5691 Online
108788 Solutions
New Discussion юеВ

Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

 
SOLVED
Go to solution
Rajeev  Shukla
Honored Contributor

Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

Hi,
Now i think its high time i'll atlast post the message. I have given up struggling with using DB_File in perl.
I Installed perl5.8.0 from publix domain and then from merijn's Site but still keep getting this error message when i use DB_File, any idea whats the reason.
By the way OS is 11.00/32bit and D370 server.

here is the error
Can't load '/usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl' for module DB_File: No such file or
directory at /usr/local/lib/perl5/5.8.0/PA-RISC2.0/XSLoader.pm line 83.
at /usr/local/lib/perl5/5.8.0/PA-RISC2.0/DB_File.pm line 251
Compilation failed in require at ./t.pl line 4.
BEGIN failed--compilation aborted at ./t.pl line 4.

Where as all the files are there when in proper place when i list them, but still.

Thanks in advance
Rajeev
9 REPLIES 9
Rajeev  Shukla
Honored Contributor

Re: Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

By the way sorry for posting this question in Database section. I realised after i clicked on Submit..too late.
Massimo Bianchi
Honored Contributor

Re: Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

Hi,
check if the file has the execution attribute, and all the previous dir have the x (for searching).


I remember another thread, with a similar error, and it turned out that was the execute bit on the shared library, that is needed...

Massimo
Rajeev  Shukla
Honored Contributor

Re: Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

I searched in forum and couldn't find any threads relating to this and was forced to post this.
Also in frustration just to test it works on a development machine i gave 777 to the whole perl directory but still complained for the same thing

Rajeev
Massimo Bianchi
Honored Contributor

Re: Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

H.Merijn Brand (procura
Honored Contributor

Re: Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

Not that this should bite, but mine should be installed in /opt/perl

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Rajeev  Shukla
Honored Contributor

Re: Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

Hi Merijin,

Yes your perl was installed in /opt/perl but when that gave the same error i thought might give a try downloading from HP-UX Porting site. But that too gives same error loading DF_File module.

Thanks
Rajeev
Massimo Bianchi
Honored Contributor

Re: Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

HI,
try debugging it, to check wheter it is a permission problem, using wbd, tusc or similia.

Massimo
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

Where does your libdb.sl reside? does it have the right version?

a5:/tmp 133 > find /opt/perl -name DB_File.sl | xargs chatr
/opt/perl/lib/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl:
shared library
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared library list:
dynamic /usr/lib/libdb.sl
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references disabled
a5:/tmp 134 >

As you can see it wants to use /usr/lib/libdb.sl

You /should/ have that in order to run DB_File.sl The error is a deferred load error.

http://hpux.connect.org.uk/hppd/hpux/Development/Tools/db-4.1.25/

is the last public port on the proting center

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Rajeev  Shukla
Honored Contributor

Re: Can't load /usr/local/lib/perl5/5.8.0/PA-RISC2.0/auto/DB_File/DB_File.sl

Thank you very much Merijin,
I got the problem, the program was looking for libdb.sl in /usr/local/lib where as the file was in /usr/sam/lib after making a link it worked.

Thanks
Rajeev