LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Installing Apache2.0.44 (http://www.linuxquestions.org/questions/linux-general-1/installing-apache2-0-44-a-42503/)

webee 01-23-2003 09:32 AM

Installing Apache2.0.44
 
Hi:
I have installed Apache2.0.44 from source in location /usr/local/apache2.
When I execute apachect1 start I get the following error:
/usr/local/apache2/bin/httpd: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory


I am running a RH7.1 and from other messages on this forum, I understand you have to download the required rpm from rpmfind.net.
The gcc version on my system is gcc3.0.1. I searched rpmfind.net and found this link:
http://rpmfind.net//linux/RPM/linuxP...0.1-0.ppc.html

My question is, is this the right package? I got a number of packages listed when I ran search on rpmfind.net. This is the search result link:
http://rpmfind.net/linux/rpm2html/se...&system=&arch=

Thanks for your time.

nxny 01-23-2003 02:59 PM

Sounds like the GNU linker (ld) cant find the shared object library it is trying to load.

do 'updatedb' as root. Wait for it to finish.

and then 'locate libgcc_s | xargs ls -l'. Okay now it told you where your library was. And symlinks to it with an extension.. if any. Now you have to tell 'ld' where to look for it by either
1) creating symlinks to the file under /lib or /usr/lib - directories that ld is already configured to scan. Make sure there is a symlink that links to the same lib with a .1 extension. That is what apache is asking ld to look for.
2) adding the directory in which the .so.1 file resides to /etc/ld.so.conf and run ldconfig.

HTH

webee 01-23-2003 03:50 PM

Thank you. That was the problem. I used symlink and its working now.


All times are GMT -5. The time now is 10:36 AM.