On Apr 25, 1:34 pm, [email protected] wrote: > Thanks for the reply. I tried that and it didn't work. I think > the reason is that the LD_LIBRARY_PATH is meant for the Python > interpreter to know where to load the .so files. It's too late > to set it in Python code because at that point the interpreter > is already running ...
How do you start lighttpd? It sounds like you run a UNIX-like system; Linux? What flavor? If your system uses an /etc/init.d/ script to start the lighttpd server, then you should add a line to that script to set the variable when the server is started up: #!/bin/sh export LD_LIBRARY_PATH=.... # rest of script Otherwise, if you start lighttpd from a different script (that automatically starts Python for you as well), then do the same song and dance for that script. If you start lighttpd by running the binary (why, I can't imagine), then you should wrap that process in a shell script and execute that. However you do it, setting the environment variable will ensure that the correct path is used when the interpreter starts. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
