This may be something that's happening on your specific distribution or specific to your server's setup, but apache uses libpcre
and should link to it (which should appear in ldd):
libpcre.so.1 => /lib/libpcre.so.1 (0xb780c000)
You may need to rely on your package manager to see what version of the package that file belongs to:
/lib/libpcre.so.1 -> libpcre.so.1.2.1
* Searching for libpcre.so.1.2.1 ...
dev-libs/libpcre-8.33 (/lib/libpcre.so.1.2.1)
It's also possible that you've got 2 pcretests installed, because it's sort of odd that you'd have system libraries in the /opt/
directory. It may be the place where some libraries end up getting installed in your distribution/setup. Debian's got a libpcre3
package which installs the library as /lib/libpcre.so.3.12.1
and the test as /usr/bin/pcretest
. Ultimately it's going to depend on how httpd was build and what it expects to link to. What does simply ldd /usr/sbin/httpd
say?