Re: dbi-users@perl.org



Philip Garrett wrote:
-----Original Message-----
From: Lihong Sun [mailto:lihong_sun88@xxxxxxxxx] Sent: Monday, June 26, 2006 2:49 PM
To: dbi-users@xxxxxxxx
Subject: dbi-users@xxxxxxxx

Dear folks,

I have a question for you here. I just installed DBI and Oracle DBD
module. I tried a test script but got the following errors:

install_driver(Oracle) failed: Can't load
'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-
multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle:
libclntsh.so.9.0: cannot open shared object file: No such file or
directory at /usr/lib/perl5/5.8.5/i386-linux-thread-
multi/DynaLoader.pm line 230. at (eval 3) line 3 Compilation failed in
require at (eval 3) line 3. Perhaps a required shared library or dll
isn't installed where expected at lsun.pl line 7

Does anyone know what is wrong? I could login to the database using
sqlplus username/password@sid


Try this before running your script:
export LD_LIBRARY_PATH="$ORACLE_HOME/lib:$LD_LIBRARY_PATH"

That should help it to find the library.

Philip

This works for me.
What's the solution when you're calling the script as a CGI-BIN script on a webserver? Is there a way to set that environment variable for LD_LIBRARY_PATH so that the perl script can see the path? I've resorted to layering in another Perl Script with $ENV{'LD_LIBRARY_PATH'}=xxxxx
which then calls the script which does the real work.

There must be a better way!

Bert
.



Relevant Pages

  • Re: dbi-users@perl.org
    ... I just installed DBI and Oracle DBD ... I tried a test script but got the following errors: ... IT Operations - Production Operations ... If you are not the intended recipient, ...
    (perl.dbi.users)
  • [NEWS] IBM Informix Web DataBlade Local Root by Design
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... that ease development of "intelligent", interactive, Web-enabled database ... person who has access to change the Perl script. ...
    (Securiteam)
  • my perl script for ripping mp3s...aka MP3scRIPt
    ... This is a Perl script to convert audio cd tracks to mp3s. ... Possibly root privs to access the cdrom device ... - this is mainly a problem on 'variety cds', mp3 files suffering from this ill ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Perl script to mimic uniq
    ... mdfoster44@netscape.net spits TOFU in my face: ... > # Perl script to find most common CS ... > So I'm back to my original script which looks like this. ... > identify a sequence as unique. ...
    (comp.lang.perl)
  • Re: Slow Performance When Using DBI, otherwise Not
    ... If I run the same perl script on the database server itself it runs ... check versions of DBI and DBD (I greped for version on every module under ...
    (perl.dbi.users)