Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Requires: libpcre.so / CentOS 7

Ran into this rather peculiar error recently while installing Varnish Cache on CentOS 7.

Resolving Dependencies
--> Running transaction check
---> Package varnish-devel.x86_64 0:5.2.1-1.el6 will be installed
--> Processing Dependency: varnish = 5.2.1-1.el6 for package: varnish-devel-5.2.                                                                                                                                                                                               1-1.el6.x86_64
--> Running transaction check
---> Package varnish.x86_64 0:5.2.1-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-5.2.1-1.el                                                                                                                                                                                               6.x86_64
--> Finished Dependency Resolution
Error: Package: varnish-5.2.1-1.el6.x86_64 (varnishcache_varnish52)
           Requires: libpcre.so.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

The fix turned out to be simple, CentOS 6 was set in the varnish repo file at /etc/yum.repos.d/varnish.repo instead of CentOS 7. This applies to other software’s as well.

If you ever run into this error make sure you install for the correct OS version.