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:
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:
Thanks for your time.
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.
Thank you. That was the problem. I used symlink and its working now.
|All times are GMT -5. The time now is 01:09 PM.|