Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8236587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:10:57+00:00 2026-06-07T19:10:57+00:00

I installed cx_Oracle on CentOS 6.2. When I import the library from the shell,

  • 0

I installed cx_Oracle on CentOS 6.2. When I import the library from the shell, it works fine but when I launch it through wsgi, I get the error :

ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory

This is an environment variable problem : cx_Oracle does not find the path to the lib.

I have tried the solutions provided here

I have added a link to libclntsh.so.10.1 (with ln) in the /usr/lib directory

I have edited apache configuration and added :

ORACLE_HOME=/usr/lib/oracle/11.2/client64/lib
LD_LIBRARY_PATH=$ORACLE_HOME/
PATH=$ORACLE_HOME/bin:$PATH

I edited /etc/ld.so.conf and added :

/usr/lib/oracle/11.2/client64/lib

done after ldconfig

I tried to use python with :

os.env['ORACLE_HOME']='/usr/lib/oracle/11.2/client64/lib'

I edited the bashrc with :

export ORACLE_HOME=/usr/lib/oracle/11.2/client64/lib
export LD_LIBRARY_PATH=$ORACLE_HOME/
export PATH=$ORACLE_HOME/bin:$PATH

I also edited apachectl with

ORACLE_HOME=/usr/lib/oracle/11.2/client64/lib
export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/
export LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH
export PATH

I am running out of ideas. Any suggestions ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:10:59+00:00Added an answer on June 7, 2026 at 7:10 pm

    Instead of using yum install on the cx_Oracle rpm, I downloaded the source of the library and run the setup.py build.

    I got an error that would point me to the function that was trying to locate the instant client sdk libraries in :

    possibleIncludeDirs = ["rdbms/demo", "rdbms/public", "network/public","sdk/include"]
    

    Browsing the Oracle_home folder, i discovered that the sdk file where installed in the lib folder ( I installed the skd using yum install on the rpm from oracle ) and not in the possibleIncludeDirs or in an include folder as suggested in the setup.py :

    if not includeDirs:
            path = os.path.join(oracleLibDir, "include")
            if os.path.isdir(path):
                includeDirs.append(path)
        if not includeDirs:
            path = re.sub("lib(64)?", "include", oracleHome)
            if os.path.isdir(path):
                includeDirs.append(path)
    

    I downloaded the instant client sdk (the zip file this time) and unziped it to the lib folder.

    There was then a sdk folder in the lib folder (/usr/lib/oracle/11.2/client64/lib)

    I then launched the setup.py build and setup.py install and it worked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've installed cx_Oracle (repeatedly) and I just can't get it to work on my
I installed iplots and rjava packages. When I do this library(iplots), I get the
I installed win32api and can import and make calls to it from the command
Installed Apache Ver 2.2.3 on my vps with Centos 5.6 but when I try
I installed the scikits package but can't import it, I am on Macbook, please
Installed Attlassian JIRA on windows 7, and it works only on h_t_t_p://localhost:8088, but if
Installed both SonataMediaBundle, SonataNewsBundle and SonataAdminBundle (and much more but these matter). When posting
Installed rubyinstaller-1.8.7-p358.exe, then tried to install jammit , but the config.gem command isn't being
I installed clojure-mode and slime using the emacs starter kit and I get this
Installed the IronPython tools for VS 2010 but it didn't associate the *.py files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.