An error was reported when installing spoole through PECL
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
This is caused by the lack of corresponding libraries, so it may appear in different systems and when installing different software
Since the lack of the corresponding library, then the solution is simple, installation of the corresponding library can also be
The following is a result of my search
Solution for /lib/cpp fails sanity check
In some software, running . /configure will report an error with the following message
configure: error: C++ preprocessor "/lib/cpp" fails sanity
check See `config.log' for more details
Workaround: The problem is that the package for the C++ compiler is not installed, so log in as root and run the following in the terminal.
# yum install glibc-headers
# yum install gcc-c++
Just change Yum to apt get in mint. But I didn’t use this method myself, because build essential contains many basic libraries, so I decided to give it a try and enter the command
#sudo apt-get install build-essential
It is recommended that you use this method, because it contains many basic libraries, which may help you avoid the trouble of lacking various libraries when you have installed other software
Similar Posts:
- Swoole Extension Install Error: configure: error: C preprocessor “/lib/cpp” fails sanity check
- Error in make menuconfig on Ubuntu [How to Solve]
- [Solved] PostgreSQL configure: error: readline library not found
- Centos7 Compile Error: ./configure: No such file or directory
- [Solved] linux configure: error: no acceptable C compiler found in $PATH
- Configure: error: no acceptable C compiler found in $PATH [How to Solve]
- Linux Install Error: pkg-config not found [How to Solve]
- [How to Solve] gcc-4.7.2 cannot compute suffix of object fil…
- Yum installer reported an error: nothing to do [How to Solve]
- [618]basic_consume() got multiple values for keyword argument ‘queue’