Python Forum
Python module cx_Oracle ld installation issue on Solaris11U3 SPARC: fatal: file /orac
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python module cx_Oracle ld installation issue on Solaris11U3 SPARC: fatal: file /orac
#1
Trying to install cx_Oracle on Solaris11U3 but getting ld: fatal: file /oracle/database/lib/libclntsh.so: wrong ELF class: ELFCLASS64 error
 
# python setup.py build
running build
running build_ext
building 'cx_Oracle' extension
cc -DNDEBUG -KPIC -DPIC -I/oracle/database/rdbms/demo -I/oracle/database/rdbms/public -I/usr/include/python2.7 -c cx_Oracle.c -o build/temp.solaris-2.11-sun4v.32bit-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.2.1
"SessionPool.c", line 202: warning: integer overflow detected: op "<<"
cc -G build/temp.solaris-2.11-sun4v.32bit-2.7-11g/cx_Oracle.o -L/oracle/database/lib -L/usr/lib -lclntsh -lpython2.7 -o build/lib.solaris-2.11-sun4v.32bit-2.7-11g/cx_Oracle.so
ld: fatal: file /oracle/database/lib/libclntsh.so: wrong ELF class: ELFCLASS64
error: command 'cc' failed with exit status 2
 
Tried all available information on the internet:
Installed gcc
Installed solarisstudio12.4
Installed instantclient-basic-solaris.sparc64-12.2.0.1.0, instantclient-odbc-solaris.sparc64-12.2.0.1.0
Set LD_LIBRARY_PATH to oracle home directory:instantclient_12_2/
 
Same issue seen while installing DBD:Oracle perl module.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Preparing an Installation with Python JgKSuperstar 2 2,610 Nov-30-2021, 11:40 AM
Last Post: JgKSuperstar
  Software(Python) Installation. Navigate Refactor Run Tools VCS tab rgbrolly 3 2,560 Oct-19-2019, 08:09 PM
Last Post: buran
  re module: want a regexhttps://python-forum.io/Thread-re-module-want-a-regex Skaperen 4 2,488 Sep-19-2019, 10:54 PM
Last Post: Skaperen
  Python package installation issue. msomasun 3 3,205 Oct-09-2018, 03:56 PM
Last Post: msomasun
  Python installation change on Mac macloo 1 3,126 Jan-29-2018, 06:33 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020