Re: LD_LIBRARY_PATH required to set to start apache 2.2
Jaggu wrote:
> 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?
Compile the plug-in properly setting LD_RUN_PATH??
LD_LIBRARY_PATH is an after-the-fact and an ugly hack.
So is crle. man ld.so.1 on Solaris.
ldd may also be your friend
|