This is a discussion on LD_LIBRARY_PATH required to set to start apache 2.2 within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi, I am using Apache 2.2 on solaris. I have written a pluging(module.so) and have specied it ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
Jaggu <endlessorigin@gmail.com> wrote:
> I am using Apache 2.2 on solaris. [ snip ] > What can be the reason for this. Is > there any flag which we can be specified with LoadFile Directive? Look at the Solaris 'crle' command. -- - Kyle |
|
|||
|
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 |