alfchung
December 21st, 2010, 05:12 AM
Hi,
I installed apache2 (httpd-2.3.8) from source. Here is what I did, download the source package from the apache2 website. ./configure, installed all the package it depends on, and finally, configure successfully.
make
sudo make install
I think it installed in
/usr/local/apache2
So I cd to /usr/local/apache2/bin
try
./httpd start
and it shows
./httpd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
ldd ./httpd
it shows
linux-gate.so.1 => (0xb7747000)
libpcre.so.0 => not found
libaprutil-1.so.0 => /usr/local/apr/lib/libaprutil-1.so.0 (0xb771b000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb76f9000)
libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0xb76d1000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb76cd000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb76c4000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7692000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7679000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7675000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7526000)
My libpcre.so.0 is located in /usr/local/lib/libpcre.so.0, I checked that
How can I fix this problem?
Thanks!
Alfred
I installed apache2 (httpd-2.3.8) from source. Here is what I did, download the source package from the apache2 website. ./configure, installed all the package it depends on, and finally, configure successfully.
make
sudo make install
I think it installed in
/usr/local/apache2
So I cd to /usr/local/apache2/bin
try
./httpd start
and it shows
./httpd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
ldd ./httpd
it shows
linux-gate.so.1 => (0xb7747000)
libpcre.so.0 => not found
libaprutil-1.so.0 => /usr/local/apr/lib/libaprutil-1.so.0 (0xb771b000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb76f9000)
libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0xb76d1000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb76cd000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb76c4000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7692000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7679000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7675000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7526000)
My libpcre.so.0 is located in /usr/local/lib/libpcre.so.0, I checked that
How can I fix this problem?
Thanks!
Alfred