grep: error while loading shared libraries: libpcre.so.0 after upgrading to RHEL 7

Solution In Progress - Updated -

Issue

  • After upgrading to RHEL 7 the following error is being seen

    grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
    
  • After upgrading to RHEL 7 still have RHEL 6 grep RPM

    # cat /etc/redhat-release ; rpm -q grep
    Red Hat Enterprise Linux Server release 7.9 (Maipo)
    grep-2.20-6.el6.x86_64
    

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content