Re: [cx-oracle-users] TemplateSyntaxError: Caught ImproperlyConfigured while rendering: Error loadi
Brought to you by:
atuining
From: Graham H. <g.h...@gm...> - 2010-03-17 14:25:02
|
On a RHEL/CentOS system, add the path to the $ORACLE_HOME/lib directory to /etc/ld.so.conf and run ldconfig as root. That'll ensure the libraries are picked up correctly by 90% of the software that needs them. For apache to work properly (and thus php etc) set the appropriate environment variables (ORACLE_HOME, TNS_ADMIN, NLS_LANG etc) in /etc/sysconfig/httpd Hope that helps, Graham 2010/3/17 Jani Tiainen <re...@gm...> > On 03/17/2010 03:53 PM, juhui wrote: > > hi > > > > I am using a redhat-4 64 bit box. I have installed > > apache+python+mod_python+django+cx_Oracle。 > > > > I can run import cx_Oracle in python shell model. And my project > > depends on cx_Oracle runs well with manage.py runserver. > > > > when I try run Django project with apache+python_mod with oracle > > database. I got MOD_PYTHON ERROR . > > > > the error info is: > > > > TemplateSyntaxError: Caught ImproperlyConfigured while rendering: > > Error loading cx_Oracle module: libclntsh.so.10.1: cannot open shared > > object file: No such file or directory > > > > Your apache doesn't get all necessary environment variables to find > Oracle shared libraries, namely libclntsh.so.10.1 this time. You might > need to add to your apache config LD_LIBRARY_PATH (or somewhere else > where apache will pick it up) to point your oracle installation dir. > > Also you might need ORACLE_HOME to point in the correct place as well. > > -- > > Jani Tiainen > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |