Forum Stats

  • 3,768,921 Users
  • 2,252,874 Discussions


Installing cx_Oracle on mac OSX fails.

user10272282 Member Posts: 1 Blue Ribbon
edited Nov 4, 2015 4:38AM in Python


I am running OSX Yosemite and Python native build for Mac Python 2.7.6 . I have installed the 64 bit Instant client and sqlplus on to the system and works fine. When trying to install the cx_Oracle package using PIP I am facing the following error:

creating build/lib.macosx-10.10-intel-2.7-11g

cc -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/ -lclntsh -o build/lib.macosx-10.10-intel-2.7-11g/ -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

Attaching the log file for the installation too from pip.log

I want to really use python to extract the data and start using it for analysis, but hit this roadblock in the installation of cx_Oracle. Appreciate help to resolve this issue.


This discussion has been closed.