|
Praveen Kumar
pk1u at yahoo.com
Tue Jul 2 19:33:07 EST 2002
How do I make mod_python aware of the location of
shared object files ?
My system consists of rh7.2, apache1.3.26,
mod_python-2.7.8, python2.1.3
Eg, I'm trying to use the DCOracle2 db module; it uses
Oracle's libclntsh.so.9.0 ; I see the following when
my program accesses the DCOracle2 module:
File
"/usr/lib/python2.1/site-packages/DCOracle2/__init__.py",
line 37, in ?
from DCOracle2 import *
File
"/usr/lib/python2.1/site-packages/DCOracle2/DCOracle2.py",
line 104, in ?
import dco2
ImportError: libclntsh.so.9.0: cannot open shared
object file: No such file or directory
I've tried the following:
Placed libclntsh.so.9.0 in /oralib and:
Placed /oralib in the PythonPath directive:
eg; httpd.conf:
<Directory /usr/local/apache/htdocs>
AddHandler python-program .py
PythonPath "sys.path+[ ...., '/oralib']"
PythonHandler reqhandler
PythonDebug On
</Directory>
--
set LD_LIBRARY_PATH from the same shell where I start
apache:
export LD_LIBRARY_PATH=/oralib
--
Placed libclntsh.so.9.0 in
/usr/lib/python2.1/site-packages/DCOracle2 .
None of these work. The DCOracle2 module works fine
when I use it from a standalone program. Any
suggestions would be greatly appreciated.
pk
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
|