LD_LIBRARY_PATH required to set to start apache 2.2

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-24-2006
Jaggu
 
Posts: n/a
Default 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

  #2 (permalink)  
Old 11-24-2006
Kyle Tucker
 
Posts: n/a
Default Re: LD_LIBRARY_PATH required to set to start apache 2.2

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
  #3 (permalink)  
Old 11-24-2006
gerryt
 
Posts: n/a
Default 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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0