Will
Will

Reputation: 681

How to fix the C++ preprocessor "/lib/cpp" fails sanity check error when configure PHP 7.0.1

I installed gcc 5.3.0 from source code on mac os x 10.11, and i have set gcc 5.3.0 in the environment variable $PATH.

But when I configure PHP 5.5.30, it shows

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

How can i fix this? How can i use c++/cpp from gcc 5.3.0 instead of the old version of gnu c++?

Upvotes: 6

Views: 4790

Answers (1)

You'll need to install g++; I once had this problem on an RHEL 5.2 distribution, and the problem was solved by installing the 'gcc-c++' rpm.

Upvotes: 5

Related Questions