On Sunday, September 9, 2012 10:41:00 PM UTC-6, Jon Blake wrote:
>
> It looks like I have to tell my app what my path to libclntsh.so.11.1 is. 
> I have added:
>
> os.environ['LD_LIBRARY_PATH'] = '/oracle/product/11.1.0/db_1/lib'
>>
>
> to my app's wsgi.py file, but this does resolve my problem.
>
>
LD_LIBRARY_PATH has to be set before the process starts to be honored.  So 
it's not sufficient to set it in the wsgi file with os.environ; you need to 
use an Apache SetEnv directive, or use a script to export it in the Apache 
process's environment variables when Apache is started.  Or as a third 
option, use ldconfig to make the Oracle library path globally visible.

Cheers,
Ian

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/z8aKjhUtm3QJ.
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