1819791 Members
3175 Online
109607 Solutions
New Discussion

Re: perl script errors

 
Chartier Jerome
Frequent Advisor

perl script errors

Hi all,

I have an error with a perl script when launching it:

/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error
install_driver(Oracle) failed: Can't load '/opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: Exec format error at /opt
/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line 206.
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected

Have you got any idea?

Thanks in advance for your help

Best Regards


Jérôme C
J@Y
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: perl script errors


Not knowing how your perl was built, I'm going to suggest that you install a NEWER version or perl (5.8.2):

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL

live free or die
harry d brown jr
Live Free or Die
Doug O'Leary
Honored Contributor

Re: perl script errors

Hey;

From the error message it looks like the DBD::Oracle module is having issues. Was it copied from a different system? If so, redownload, recompile, and reinstall it.

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Chartier Jerome
Frequent Advisor

Re: perl script errors

Hi guys,

Thanks for your help


The problem came from the LD_PRELOAD that was not set correctly ... it must be :
export LD_PRELOAD=/opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi/auto/DBD/Oracle/Oracle.sl

Silly thing .. ;)

Cheers

Jérôme C
J@Y