grep: error while loading shared libraries: libpcre.so.0

I have a server running CentOS 6 successfully upgraded to CentOS 7. The only problem I encountered so far is that ‘grep’ doesn’t work. [root@zilla ~]# grep grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory [root@zilla ~]# ldd /usr/bin/grep linux-vdso.so.1 => (0x00007ffc0b639000) libpcre.so.0 => not found libc.so.6 => /lib64/libc.so.6 (0x00007f6be1c6c000) /lib64/ld-linux-x86-64.so.2 (0x00007f6be2038000) First thing I tried was to reinstall pcre package which provides libpcre.so*. It still didn’t work. Fortunately, someone has posted a solution as the following: ...

July 1, 2016 · 1 min · 156 words · kenno