Re: [cx-oracle-users] cx_Oracle-5.1.1 install help (Solaris 11 w/ Oracle DB Client 11.2.0.3 64-bit)
Brought to you by:
atuining
From: Christopher J. <chr...@or...> - 2012-02-15 00:36:02
|
Try installing the 32bit Instant Client 'basic' & 'sdk' packages and link cx_Oracle with it (by creating a symlink libclntsh.so -> libclntsh.so.11.1 and setting ORACLE_HOME to the instant client directory). Subsequently, prior to python runtime, set LD_LIBARY_PATH to the Instant Client directory. ORACLE_HOME should not be set at runtime since python is using Instant Client. It's only the cx_Oracle installer that overloads the meaning of ORACLE_HOME. Connections will need a connect string, such as "localhost/orcl". If you use a tnsnames.ora file, then simply set TNS_ADMIN to its containing directory. Chris On 02/14/2012 08:09 AM, Anthony Tuininga wrote: > Hi, > > Looks to me like you are trying to use a 64-bit Oracle client with a > 32-bit Python. That won't work. :-) You will need to have a 64-bit > Python. If you already do, the other possibility is that you need a > special switch to specify that you want to build 64-bit binaries. If > that is the case, let me know what needs to be adjusted in setup.py to > make things work for you. Thanks. > > Anthony > > On Tue, Feb 14, 2012 at 8:54 AM, Brad Hudson<bra...@gm...> wrote: >> Can anyone assist with an install of cx_Oracle-5.1.1 on Solaris 11? I have >> installed the Oracle DB Client 11.2.0.3 (64-bit on SPARC) and receive the >> following error when attempting to build cx_Oracle: >> >> # python setup.py build >> running build >> running build_ext >> building 'cx_Oracle' extension >> /usr/lib/python2.6/pycc -G build/temp.solaris-2.11-sun4v-2.6-11g/cx_Oracle.o >> -L/u01/app/oracle/product/11.2.0/client_1/lib -L. -lclntsh -lpython2.6 -o >> build/lib.solaris-2.11-sun4v-2.6-11g/cx_Oracle.so >> ld: fatal: file /u01/app/oracle/product/11.2.0/client_1/lib/libclntsh.so: >> wrong ELF class: ELFCLASS64 >> ld: fatal: file processing errors. No output written to >> build/lib.solaris-2.11-sun4v-2.6-11g/cx_Oracle.so >> collect2: ld returned 1 exit status >> error: command '/usr/lib/python2.6/pycc' failed with exit status 1 >> # >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> cx-oracle-users mailing list >> cx-...@li... >> https://lists.sourceforge.net/lists/listinfo/cx-oracle-users >> > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users -- Email: chr...@or... Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/ |