Building Imagick PHP extension for CentOS/RHEL 7 fails with error `C preprocessor “/lib/cpp” fails sanity check` and how to fix it

So I recently stumbled upon a problem with building Imagick PHP extension on CentOS/RHEL 7 and it drove me a little bit mad co’z I can’t seem to find the fix only to realize that the solution was actually so easy.

ImageMagick

ImageMagick

More

Advertisements

Installing PHP XSL extension on CentOS 7

xsl

PHP-XSL

So you just finished installing php and then tried deploying your app, but then you are greeted with something like:

. . . the requested PHP extension xsl is missing from your system. . .

or
. . . requires PHP XSLT extension. Please enable it first then. . .

Don’t despair because installing and enabling this extension on CentOS 7 is a piece of cake!

More