Re: [cx-oracle-users] cx_Oracle on HP-UX 11.31 ia64 built with aCC successfully but failed to load
Brought to you by:
atuining
From: Wong W. Meng-R. <r3...@fr...> - 2011-09-22 09:47:52
|
Hi I sent this one a few days ago. Did you get this? Thanks in advance for reverting. :) =========================================================================================== This is the output of file, ldd and chart, respectively. Can you help to elaborate what does it mean by using "LD_PRELOAD"? It gives me an error when I invoke it by appending LD_PRELOAD with the path of python. LD_PRELOAD is an invalid command when I separate the two. $ cp cx_Oracle-5.0/build/lib*/*.so $PYTHONPATH $ which cx_Oracle.so /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so $ file `which cx_Oracle.so` /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so: ELF-64 shared object file - IA64 $ ldd `which cx_Oracle.so` /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so: libclntsh.so.11.1 => /opt/oracle/product/11.1.0/lib/libclntsh.so.11.1 libnnz11.so => /opt/oracle/product/11.1.0/lib/libnnz11.so libdl.so.1 => /usr/lib/hpux64/libdl.so.1 libm.so.1 => /usr/lib/hpux64/libm.so.1 libpthread.so.1 => /usr/lib/hpux64/libpthread.so.1 libnsl.so.1 => /usr/lib/hpux64/libnsl.so.1 libunwind.so.1 => /usr/lib/hpux64/libunwind.so.1 libc.so.1 => /usr/lib/hpux64/libc.so.1 libxti.so.1 => /usr/lib/hpux64/libxti.so.1 libuca.so.1 => /usr/lib/hpux64/libuca.so.1 libdl.so.1 => /usr/lib/hpux64/libdl.so.1 $ chatr `which cx_Oracle.so` /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so: 64-bit ELF shared library shared library dynamic path search: LD_LIBRARY_PATH enabled first SHLIB_PATH enabled second embedded path enabled third /opt/oracle/product/11.1.0/lib:/opt/oracle/product/11.1.0 shared library list: libclntsh.so.11.1 shared library mapped private disabled shared vtable support disabled explicit unloading enabled linkage table protection disabled segments: index type address flags size 7 text 4000000000000000 z---c- D (default) 8 data 6000000000000000 ---m-- D (default) kernel assisted branch prediction enabled lazy swap allocation for dynamic segments disabled nulptr dereferences trap disabled address space model: default caliper dynamic instrumentation disabled $ which python /home/r32813/Build/2.7.1/Python-2.7.1/Lib/../python $ LD_PRELOAD`which python` sh: LD_PRELOAD/home/r32813/Build/2.7.1/Python-2.7.1/Lib/../python: not found. $ LD_PRELOAD `which python` sh: LD_PRELOAD: not found. Regards, Wah Meng -----Original Message----- From: inkblotter [mailto:ink...@gm...] Sent: Tuesday, September 20, 2011 5:10 AM To: cx-...@li... Subject: Re: [cx-oracle-users] cx_Oracle on HP-UX 11.31 ia64 built with aCC successfully but failed to load file /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so ldd /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so chatr /home/r32813/Build/2.7.1/Python-2.7.1/Lib/cx_Oracle.so On Itaium you may need to invoke python as LD_PRELOAD<path to python> and at the python prompt "import cx_Oracle" If that fails try LD_PRELOAD $ORACLE_HOME/lib/libclntsh.so<path to python> and at the python prompt 'import cx_Oracle' |