| perl mysql (3) perl CGI (3)
|
perl CGI script cannot load a library
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:
| ||||||||||||||