cx_oracle OSX安装错误 [英] cx_oracle OSX install error

查看:128
本文介绍了cx_oracle OSX安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我在这里按照以下说明安装Oracle InstantClient,

So I followed these directions here to install Oracle InstantClient,

在Mac OS/上安装Oracle Instantclient X没有设置环境变量?

但是当我尝试安装cx_oracle时,我得到了以下堆栈跟踪,

But when I try to install cx_oracle I get the following stack trace,

python setup.py build
running build 
running build_ext
building 'cx_Oracle' extension
creating build
creating build/temp.macosx-10.6-universal-2.6-10g
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/usr -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c cx_Oracle.c -o build/temp.macosx-10.6-universal-2.6-10g/cx_Oracle.o -DBUILD_VERSION=5.1.1
creating build/lib.macosx-10.6-universal-2.6-10g
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc -arch x86_64 build/temp.macosx-10.6-universal-2.6-10g/cx_Oracle.o -L/usr/lib -lclntsh -o build/lib.macosx-10.6-universal-2.6-10g/cx_Oracle.so -shared-libgcc
ld: library not found for -lclntsh
collect2: ld returned 1 exit status
ld: library not found for -lclntsh
collect2: ld returned 1 exit status
ld: library not found for -lclntsh
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/5Q/5QMpI35VGumn0wxJwdndr-r4BJ+/-Tmp-//ccG0USbB.out (No such file or directory)
error: command 'gcc-4.2' failed with exit status 1

我在这里做错了什么?我在安装InstantClient时是否错过了某些东西?

What am I doing wrong here? Did I miss something when I followed the InstantClient installation?

已复制的库列表

bnnz10.dylib 
libociei.dylib 
libsqlplusic.dylib 
libclntsh.dylib.10.1 
libocci.dylib.10.1 
libocijdbc10.dylib 
libsqlplus.dylib

推荐答案

您还没有clntsh库可以链接

You have not got a clntsh library to link against

要解决此问题,您需要在/usr/lib中将libclntsh.dylib.10.1链接到libclntsh.dylib,将libocci.dylib.10.1链接到libocci.dylib

To fix this you need in /usr/lib to link libclntsh.dylib.10.1 to libclntsh.dylib and libocci.dylib.10.1 to libocci.dylib

请注意,我没有oracle库,因此无法确认是否足够.

Note that I don't have the oracle library and so cannot confirm this will be sufficient.

这篇关于cx_oracle OSX安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆