【发布时间】:2016-01-27 13:10:30
【问题描述】:
尝试在 Mac 上安装 cx_Oracle 时收到以下错误。
creating build/lib.macosx-10.10-intel-2.7-11g
c -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.10-intel-2.7-11g/cx_Oracle.o -L/Applications/oracle/product/instantclient_64/11.2.0.4.0/lib -lclntsh -o build/lib.macosx-10.10-intel-2.7-11g/cx_Oracle.so -shared-libgcc
ld: library not found for -lclntsh
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
感谢您对此的任何帮助。 我试过cx_oracle OSX install error线程下的解决方案,但还是不行。
【问题讨论】:
-
@KunalBhai——你在使用 pip 吗?你是如何尝试安装它的?你运行的是什么版本的 OS X?你在用 Homebrew 吗?
-
是的,我正在使用 pip,我使用的是 OSX Yosemite 10.10.5 (14F27) 版本,我也安装了自制软件,我在 /Applications/oracle 文件夹下安装了 Instant 客户端和 sqlplus。
标签: python oracle macos oracle11g