[cx-oracle-users] ImportError: ld.so.1: python: fatal: relocation error: file /u/sf/tshab/lib/pytho
Brought to you by:
atuining
From: Ted S. <ts...@ya...> - 2007-09-11 19:49:38
|
Sadly, I'm back to the old error after fixing the issue with using a comma instead of a ":" in the path statement. tshab@flora05 $ setenv LD_LIBRARY_PATH /afs/slac/package/oracle/current.@sys/@sy s/lib:ORACLE_HOME/lib tshab@flora05 $ ./arfd.py Traceback (most recent call last): File "./arfd.py", line 4, in ? import cx_Oracle; ImportError: ld.so.1: python: fatal: relocation error: file /u/sf/tshab/lib/pyth on/cx_Oracle.so: symbol OCINlsNumericInfoGet: referenced symbol not found --- Ted Shab <ts...@ya...> wrote: > Initially, I was using DCOracle2. > > 1. DCOracle2 seems to only support selects and not > updates against Oracle 10 (unsubstantiated, but > updates aren't working and selects are). > > 2. I took someone's suggestion and built cx_Oracle > using python setup.py install --home=~ > > 3. It creates cx_Oracle.so under ~/lib/python > > 4. I updated my PYTHONPATH variable to point to > ~/lib/python > > 5. Someone had previously suggested that: > "you can do setenv LD_LIBRARY_PATH > /afs/slac/package/oracle/current.@sys/@sys/lib > and then it works. I guess on solaris, the python > shared object was built without including the path > to > the oracle lib." > > This worked fine for the DCOracle2 library. > > 6. The script is now failing on: > > tshab@flora05 $ setenv LD_LIBRARY_PATH > /afs/slac/package/oracle/current.@sys/@sy > s/lib > tshab@flora05 $ ./arfd.py > Traceback (most recent call last): > File "./arfd.py", line 4, in ? > import cx_Oracle; > ImportError: ld.so.1: python: fatal: relocation > error: > file /u/sf/tshab/lib/pyth > on/cx_Oracle.so: symbol OCINlsNumericInfoGet: > referenced symbol not found > > 7. When I add ORACLE_HOME/lib to the path, I get > this > error instead: > > tshab@flora05 $ setenv LD_LIBRARY_PATH > /afs/slac/package/oracle/current.@sys/@sy > s/lib,ORACLE_HOME/lib > tshab@flora05 $ ./arfd.py > Traceback (most recent call last): > File "./arfd.py", line 4, in ? > import cx_Oracle; > ImportError: ld.so.1: python: fatal: > libclntsh.so.8.0: > open failed: No such file or directory > > Thanks for any info! > > --Ted > > > > > ____________________________________________________________________________________ > Building a website is a piece of cake. Yahoo! Small > Business gives you all the tools to get online. > http://smallbusiness.yahoo.com/webhosting > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > ____________________________________________________________________________________ Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. http://tv.yahoo.com/ |