In my case I have the next line on my wsgi script.

os.environ['ORACLE_HOME'] = 
'/usr/lib/oracle/xe/app/oracle/product/10.2.0/server'

You must be sure you have installed the oracle-instantclient-devel 
package (which has the libclntsh.so and others files required).

I hope this helps you.
Regards,
Pablo.

SlafS escribió:
> Hi!
>
> I'm trying to run Django app with mod_wsgi and Oracle, but when I try
> to configure it I always get an internal server error (500) with this
> error.log:
>
> ImproperlyConfigured: Error loading cx_Oracle module: libclntsh.so.
> 11.1: cannot open shared object file: No such file or directory
>
> It seems that there's no ORACLE_HOME or LD_LIBRARY_PATH but my script
> looks like:
>
> import os
> import sys
>
> sys.path.append('/home/slafs/django2/djproj/')
> sys.path.append('/home/slafs/django2/djproj/projekty/')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'projekty.settings_oracle2'
> os.environ['PYTHON_EGG_CACHE'] = '/home/slafs/django2/djproj/egg-
> cache'
> os.environ['ORACLE_HOME'] = '/home/slafs/paczki/instantclient_11_1'
> os.environ['LD_LIBRARY_PATH'] = '/home/slafs/paczki/
> instantclient_11_1'
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
>
> and I'm wondering what's wrong...
> Can anyone help me ?
>
> Regards.
> >
>   


-- 
Pablo Suárez Hernández  <pa...@osl.ull.es>
Oficina de Software Libre -- http://www.osl.ull.es/
Vicerrectorado de Servicios Universitarios
Universidad de La Laguna
Teléfono: +34 922 845 071


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to