Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

php

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++?

like image 389
Will Avatar asked Oct 19 '22 19:10

Will


1 Answers

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.

like image 109
Denis Valdenaire aka Joe Linux Avatar answered Nov 01 '22 09:11

Denis Valdenaire aka Joe Linux