Re: [cx-oracle-users] CentOS 5, Oracle 11g RPM Binary install - libclntsh.so.11.1:
Brought to you by:
atuining
From: Dwayne K. <dw...@kr...> - 2012-09-11 20:15:53
|
I've had this in the past. If I remember correctly, adding the $ORACLE_HOME/lib to LD_LIBRARY_PATH fixed it Since you're running 32 bit (having done this myself in a long time), check to see if there's a lib32 directory underneath $ORACLE_HOME. If so, you may need to put that in LD_LIBRARY_PATH instead. HTH Dwayne On Tue, Sep 11, 2012 at 3:54 PM, Jeff MacDonald <je...@te...> wrote: > Hi, > > I have a fully functional Oracle 11g server install. Its a 32bit machine > running CentOS 5.8 > > I installed this : > http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.1.2-11g-py24-1.i386.rpm?download > > By doing "rpm -i cx_Oracle-5.1.2-11g-py24-1.i386.rpm" > > Then as a regular user I set the following environment variables (i run > source env.sh..) > > [jmacdonald@devoracle python]$ cat env.sh > ORACLE_BASE=/u01/app/oracle > ORACLE_SID=orcl > ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1 > PATH=$PATH:$ORACLE_HOME/bin > LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0.3/dbhome_1/lib/ > export ORACLE_BASE ORACLE_SID ORACLE_HOME PATH LD_LIBRARY_PATH > > Then when I run my teeny tiny testing script, I get the following: > > [jmacdonald@devoracle python]$ python connect.py > Traceback (most recent call last): > File "connect.py", line 2, in ? > import cx_Oracle > ImportError: libclntsh.so.11.1: cannot open shared object file: No such > file or directory > [jmacdonald@devoracle python]$ locate libclntsh.so.11.1 > /u01/app/oracle/product/ > 11.2.0.3/dbhome_1/inventory/Scripts/ext/lib/libclntsh.so.11.1 > > /u01/app/oracle/product/11.2.0.3/dbhome_1/inventory/backup/2012-01-30_10-26-09PM/Scripts/ext/lib/libclntsh.so.11.1 > /u01/app/oracle/product/11.2.0.3/dbhome_1/lib/libclntsh.so.11.1 > > I'm kinda stuck. Any suggestions? > > Thanks > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |