/lib/libpcre.so.0 does not exist

Issues related to applications and software problems
Post Reply
mathog
Posts: 258
Joined: 2008/07/09 23:52:06

/lib/libpcre.so.0 does not exist

Post by mathog » 2018/10/25 20:11:42

Anybody know why /lib/libpcre.so.0 does not exist on CentOS 7? The 32bit libraries are installed but it only has these:

Code: Select all

lrwxrwxrwx. 1 root root     18 Sep 14  2017 /lib/libpcre16.so -> libpcre16.so.0.2.0
lrwxrwxrwx. 1 root root     18 Sep 14  2017 /lib/libpcre16.so.0 -> libpcre16.so.0.2.0
-rwxr-xr-x. 1 root root 372876 Aug  1  2017 /lib/libpcre16.so.0.2.0
lrwxrwxrwx. 1 root root     18 Sep 14  2017 /lib/libpcre32.so -> libpcre32.so.0.0.0
lrwxrwxrwx. 1 root root     18 Sep 14  2017 /lib/libpcre32.so.0 -> libpcre32.so.0.0.0
-rwxr-xr-x. 1 root root 356464 Aug  1  2017 /lib/libpcre32.so.0.0.0
lrwxrwxrwx. 1 root root     19 Sep 14  2017 /lib/libpcrecpp.so -> libpcrecpp.so.0.0.0
lrwxrwxrwx. 1 root root     19 Sep 14  2017 /lib/libpcrecpp.so.0 -> libpcrecpp.so.0.0.0
-rwxr-xr-x. 1 root root  35476 Aug  1  2017 /lib/libpcrecpp.so.0.0.0
lrwxrwxrwx. 1 root root     21 Sep 14  2017 /lib/libpcreposix.so -> libpcreposix.so.0.0.1
lrwxrwxrwx. 1 root root     21 Sep 14  2017 /lib/libpcreposix.so.0 -> libpcreposix.so.0.0.1
-rwxr-xr-x. 1 root root  10444 Aug  1  2017 /lib/libpcreposix.so.0.0.1
lrwxrwxrwx. 1 root root     16 Sep 14  2017 /lib/libpcre.so -> libpcre.so.1.2.0
lrwxrwxrwx. 1 root root     16 Sep 14  2017 /lib/libpcre.so.1 -> libpcre.so.1.2.0
-rwxr-xr-x. 1 root root 409740 Aug  1  2017 /lib/libpcre.so.1.2.0
So as root I did:

Code: Select all

cd /lib; ln -s libpcre.so.1.2.0 libpcre.so.0
and then a 32 bit binary which needed it could find the library.

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: /lib/libpcre.so.0 does not exist

Post by chemal » 2018/10/25 21:49:58

Anybody know why /lib/libpcre.so.0 does not exist on CentOS 7?
Because the SONAME of the library shipped with CentOS 7 is libpcre.so.1, not libpcre.so.0.

Your link is incorrect, but you may be lucky, and your non-centos binary will run with it.

Post Reply