DelphiFAQ Home Search:

perl CGI script cannot load a library

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

I run a perl script in mod_perl on Apache 2 and it does not work properly, apparantly it cannot find a C++ library named libstdc++.so.
I found this library located in /usr/local/lib

Answer:

Apache does not pass the environment variable that holds the library path to the processes running on mod_perl.

Add the following line to your httpd.conf file:

SetEnv LD_LIBRARY_PATH /usr/local/lib

and the calls to your library will work.


Comments:

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
Leave your comment here:
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.