LD_LIBRARY_PATH required to set to start apache 2.2
Hi,
I am using Apache 2.2 on solaris.
I have written a pluging(module.so) and have specied it in httpd.conf
file.I need libstdc++.so.5 and libgcc_s.so.1 to load my module. So i
have also specified these two libraries in my httpd.conf file. The
entries in httpd.conf files are:
LoadFile "/home/lib/libgcc_s.so.1"
LoadFile "/home/libstdc++.so.5"
LoadModule myModule "/home/module.so"
When ever i try to start my webserver it gives error:
ld.so.1: httpd: fatal: libgcc_s.so.1: open failed: No such file or
directory.
These two files are present in the specied directories. But when i set
the LD_LIBRARY_PATH to home directory(exportLD_LIBRARY_PATH=/home), the
server starts without any error. What can be the reason for this. Is
there any flag which we can be specified with LoadFile Directive?
Thanks,
Ranjan
|