Re: [cx-oracle-users] libclntsh.so and setup.py
Brought to you by:
atuining
From: D.R. B. <da...@as...> - 2012-02-10 10:56:39
|
Hello Aurélien, My apologies in advance if I misinterpret your question, but cx_Oracle only uses ORACLE_HOME to find the Oracle sdk for the include files when you compile cx_Oracle. If we look at the source code of cx_Oracle we'll see there is no reference to ORACLE_HOME at all. Perhaps you mean that cx_Oracle does not look at LD_LIBRARY_PATH when you import the module from python. On all the platforms I have tried LD_LIBRARY_PATH is used, however, so I am wondering what platform you use or what else is going on. In any case, after cx_Oracle has been built ORACLE_HOME does not have to be defined, which is what you seem to suggest in your example. Salut, Danny 2012/2/9 Aurélien Vallée <val...@gm...>: > Hello, > > Just a question, why does cx_Oracle lookup for libclntsh.so in $ORACLE_HOME > and fail if not found? > I have my libclntsh.so installed in /usr/local/lib, which means i basically > need to > > export ORACLE_HOME=/usr/local > pip install cx_Oracle > export ORACLE_HOME=/usr/local/share/oracle11 > > Every time I need to install cx_Oracle - which is a pain since i need to > deploy a alot of python applications needing cx_Oracle in virtualens. > > -- > Aurélien Vallée > +33 6 47 41 70 37 > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |