Thread: [cx-oracle-users] installation proplems
Brought to you by:
atuining
From: Christian K. <ckl...@no...> - 2010-07-07 13:57:17
|
Hi, i try to install cx_oracle on my new mac-book-pro. I have installed instantclient_10_2/ basic + sdk If i start easy_install cx_Oracle i get this error: yeti-ii:cx_Oracle-5.0.3 christian$ ../bin/python setup.py build running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.macosx-10.4-x86_64-2.6-10g gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/christian/oracle/instantclient_10_2/sdk/include -I/Users/christian/local/include/python2.6 -c cx_Oracle.c -o build/temp.macosx-10.4-x86_64-2.6-10g/cx_Oracle.o -DBUILD_VERSION=5.0.3 In file included from /Users/christian/oracle/instantclient_10_2/sdk/include/oci.h:2681, from cx_Oracle.c:10: /Users/christian/oracle/instantclient_10_2/sdk/include/oci1.h:148: warning: function declaration isn’t a prototype In file included from /Users/christian/oracle/instantclient_10_2/sdk/include/ociap.h:230, from /Users/christian/oracle/instantclient_10_2/sdk/include/oci.h:2705, from cx_Oracle.c:10: /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:676: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2667: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2676: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2686: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2695: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2704: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2713: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2721: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2731: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2738: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/nzt.h:2746: warning: function declaration isn’t a prototype In file included from /Users/christian/oracle/instantclient_10_2/sdk/include/oci.h:2705, from cx_Oracle.c:10: /Users/christian/oracle/instantclient_10_2/sdk/include/ociap.h:10077: warning: function declaration isn’t a prototype /Users/christian/oracle/instantclient_10_2/sdk/include/ociap.h:10083: warning: function declaration isn’t a prototype creating build/lib.macosx-10.4-x86_64-2.6-10g gcc -bundle -undefined dynamic_lookup build/temp.macosx-10.4-x86_64-2.6-10g/cx_Oracle.o -L/Users/christian/oracle/instantclient_10_2/lib -L/Users/christian/oracle/instantclient_10_2/ -lclntsh -o build/lib.macosx-10.4-x86_64-2.6-10g/cx_Oracle.so -shared-libgcc ld: warning: directory '/Users/christian/oracle/instantclient_10_2/lib' following -L not found ld: library not found for -lclntsh collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 ideas? thanks christian |
From: Mark H. <mh...@pi...> - 2010-07-07 20:33:04
|
On 7/7/10 6:44 AM, Christian Klinger wrote: > Hi, > > i try to install cx_oracle on my new mac-book-pro. what version of OSX? > > I have installed instantclient_10_2/ basic + sdk I was able to get everything built quite easily if I installed the instantclient into /usr/{include,lib,bin} I documented the steps here: http://stackoverflow.com/questions/684352/installing-oracle-instantclient-on-mac-os-x-without-setting-environment-variables HTH! |
From: Christian K. <ckl...@no...> - 2010-07-09 09:36:13
|
Hi again, my osx version is 10.6.4. and i have 2.66 intel core processor. If i remove the clntsh from libs i can build cx_Oracle. But when i try to import cx_Oracle i run into this error. any ideas... yeti-ii:fernlehrgang christian$ ../bin/python Python 2.6.5 (r265:79063, Jun 22 2010, 15:40:32) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cx_Oracle Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.macosx-10.4-x86_64/egg/cx_Oracle.py", line 7, in <module> File "build/bdist.macosx-10.4-x86_64/egg/cx_Oracle.py", line 6, in __bootstrap__ ImportError: dlopen(/Users/christian/.python-eggs/cx_Oracle-5.0.3-py2.6-macosx-10.4-x86_64.egg-tmp/cx_Oracle.so, 2): Symbol not found: _OCIAttrGet Referenced from: /Users/christian/.python-eggs/cx_Oracle-5.0.3-py2.6-macosx-10.4-x86_64.egg-tmp/cx_Oracle.so Expected in: dynamic lookup >>> > On 7/7/10 6:44 AM, Christian Klinger wrote: >> Hi, >> >> i try to install cx_oracle on my new mac-book-pro. > > what version of OSX? > >> >> I have installed instantclient_10_2/ basic + sdk > > I was able to get everything built quite easily if I > installed the instantclient into /usr/{include,lib,bin} > > I documented the steps here: > > http://stackoverflow.com/questions/684352/installing-oracle-instantclient-on-mac-os-x-without-setting-environment-variables > > HTH! > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first |
From: Mark H. <mh...@pi...> - 2010-07-09 10:22:34
|
On 7/9/10 2:35 AM, Christian Klinger wrote: > Hi again, > > my osx version is 10.6.4. > and i have 2.66 intel core processor. > > If i remove the clntsh from libs i can build cx_Oracle. But when i > try to import cx_Oracle i run into this error. > > any ideas... hmm... let's check 3 things: Did you follow the steps below, so that everything is in /usr/lib? What is the result of running /usr/bin/sqlplus? Which instantclient (exact name of file) did you install? There is a *_x86* and *_x64*. (x64 is the one you need) |
From: Christian K. <ckl...@no...> - 2010-07-09 10:34:11
|
Hi this does not help... i give up... thanks christian > On 7/9/10 2:35 AM, Christian Klinger wrote: >> Hi again, >> >> my osx version is 10.6.4. >> and i have 2.66 intel core processor. >> >> If i remove the clntsh from libs i can build cx_Oracle. But when i >> try to import cx_Oracle i run into this error. >> >> any ideas... > > hmm... let's check 3 things: > > Did you follow the steps below, so that everything is > in /usr/lib? > > What is the result of running /usr/bin/sqlplus? > > Which instantclient (exact name of file) did you install? > There is a *_x86* and *_x64*. (x64 is the one you need) > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first |