RE: Bundle::DBI and DBD::Oracle failing

"Tony D'Alfonso" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
Hi Carl,

I used CPAN to install them and it appeared as though they are in place:

# cpan -i Bundle::DBI
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 22 Jun 2016 13:29:02 GMT
DBI is up to date (1.636).
DBI::Shell is up to date (11.95).
Storable is up to date (2.51).
Net::Daemon is up to date (0.48).
RPC::PlServer is up to date (0.2020).
DBD::Multiplex is up to date (2.11).
[root@screendoor ~]# cpan -i DBD::Oracle
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 22 Jun 2016 13:29:02 GMT
DBD::Oracle is up to date (1.74).

I'm using the Oracle 10 client.  Defined the environment variables as:
export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/client64
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_RUN_PATH=$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin

Here's a snippet of a perl -V output:
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
   
  Platform:
    osname=linux, osvers=2.6.32-504.16.2.el6.x86_64, archname=x86_64-linux-thread-multi
    uname='linux x86-021.build.eng.bos.redhat.com 2.6.32-504.16.2.el6.x86_64 #1 smp tue mar 10 17:01:00 edt 2015 x86_64 x86_64 x86_64 gnulinux '



Built under linux
  Compiled at Jul  7 2015 08:36:18
  %ENV:
    PERL5LIB="/root/perl5/lib/perl5:"
    PERL_LOCAL_LIB_ROOT=":/root/perl5"
    PERL_MB_OPT="--install_base /root/perl5"
    PERL_MM_OPT="INSTALL_BASE=/root/perl5"
  @INC:
    /root/perl5/lib/perl5/x86_64-linux-thread-multi
    /root/perl5/lib/perl5
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5



-----Original Message-----
From: Furst, Carl [mailto:[email protected]] 
Sent: June 22, 2016 3:28 PM
To: Tony D'Alfonso; [email protected]
Subject: Re: Bundle::DBI and DBD::Oracle failing

It means you don¹t have the Oracle DBD installed. Or its installed to a different place.

Did you install it? Where?

Carl Yamamoto-Furst
-- 





From:  Tony D'Alfonso <[email protected]>
Date:  Wednesday, June 22, 2016 at 2:00 PM
To:  "[email protected]" <[email protected]>
Subject:  RE: Bundle::DBI and DBD::Oracle failing


Confirming this email made it through.  Slicing the output into multiple messages.  Can you help me with this error message?
 
perl /stl/bin/test.pl
install_driver(Oracle) failed: Can't load '/root/perl5/lib/perl5/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so'
 for module DBD::Oracle:
 libstdc++.so.5: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 190.
at (eval 4) line 3.
Compilation failed in require at (eval 4) line 3.
Perhaps a required shared library or dll isn't installed where expected at /stl/bin/test.pl line 3.
 




**********************************************************

MLB.com <http://mlb.com> - Where Baseball is Always On.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.