Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Install Module DBD crashes with "Cant find library"

by LHradowy (Novice)
on Nov 22, 2006 at 20:03 UTC ( #585602=perlquestion: print w/ replies, xml ) Need Help??
LHradowy has asked for the wisdom of the Perl Monks concerning the following question:

This is in regards to my previous long winded question regarding installing DBD::Oracle
Well, I started from scratch and just untarred the binaries.
I am running HP 11.00 B.11.00 U 9000/785
Installed both 64 bit gcc and Perl with DBI
Corrected the correct $PATH:
/opt/perl64/bin/perl:/usr/local/pa20_64/bin/gcc

Here is where my issues arrises...
When I start the install of the DBD:Oracle
LD_RUN_PATH=/opt/app/oracle/product/8.1.7/lib:/opt/app/oracle/product/ +8.1.7/rdbms/lib Using DBD::Oracle 1.19. Using DBD::Oracle 1.19. Using DBI 1.46 (for perl 5.008006 on PA-RISC2.0-LP64) installed in /op +t/perl64/lib/site_perl/5.8.6/PA-RISC2.0-LP64/auto/DBI/ Writing Makefile for DBD::Oracle
Then it poops out:
ld: Can't find library or mismatched ABI for -lclntsh Fatal error. *** Error exit code 1

Would this be because the oracle installed is 32 bit?
Or changing the LD_LIBRARY_PATH will fix this...


How would I do this?

Comment on Install Module DBD crashes with "Cant find library"
Select or Download Code
Re: Install Module DBD crashes with "Cant find library"
by Joost (Canon) on Nov 22, 2006 at 20:22 UTC
Re: Install Module DBD crashes with "Cant find library"
by tphyahoo (Vicar) on Nov 24, 2006 at 12:29 UTC
    the oracle install is a real PITA. Install oracle install client for, I think in your situation, 64 bit perl, and for your platform. Downloadable for free from oracle.com, after nagging you to create an account with user/pw. Before doing anything with the perl install, verify that you can connect to an oracle db with instantclient. I did something like this
    $ cat oracle-env.sh export INSTANT_CLIENT_PATH=/home/oracleInstalls/10.2/instantclient_10_ +2 export LD_LIBRARY_PATH=$INSTANT_CLIENT_PATH export PATH=$INSTANT_CLIENT_PATH:$PATH export TNS_ADMIN=/opt/oracle export ORACLE_HOME=$INSTANT_CLIENT_PATH export ORACLE_USERID='user/password' #export ORACLE_DSN='mydb2.myhost' # this dien't work export ORACLE_DSN='dbi:Oracle:host=myhost;sid=mydb2' # necessary to ge +t make test to work in dbd::oracle #needed for sqlplus export TWO_TASK=mydb2.myhost export ORACLE_SID=mydb2 alias go-dbd-oracle='cd /usr/cpanroot64/.cpan/build/DBD-Oracle-1.18' #$dbh = DBI->connect("dbi:Oracle:host=myhost.com;sid=ORCL", $user, $pa +sswd); alias the-sqlplus='sqlplus user/password@mydb2.myhost'
    After I verified that I could commit to sqlplus, I cd-ed into the build dir for DBD::Oracle and force-installed.
Re: Install Module DBD crashes with "Cant find library"
by tphyahoo (Vicar) on Nov 24, 2006 at 12:36 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://585602]
Approved by GrandFather
Front-paged by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2014-07-30 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls