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 due to the lack of appropriate libraries, so it can occur on different systems and when installing different software.
Since there is no corresponding library, the solution is simple and the corresponding library can be installed.
Here is one of the results I found. It reads as follows:
/lib/ CPP fails to solve puzzles check
When you run./configure, you’ll get an error:
Configure: error: C++ preprocessor “/lib/ CPP” fails sanity
check See ‘config.log’ for more details
Solution: this situation occurs because the relevant package of the c++ compiler is not installed. Log in as root and execute on the terminal:
# yum install glibc-headers
# yum install gcc-c++
This comrade USES the red hat version, for Ubuntu, just change yum to apt-get.
But I didn’t use this method myself, because Build-Essential contains a lot of base libraries, so I decided to give it a try and type
#sudo apt-get install build-essential
Run./configure again
This approach is recommended because it contains a number of basic libraries and may save you the trouble of missing libraries when you already have other software installed.
Read More:
- RuntimeError: NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL.cpp:784 torch
- Bad file descriptor(C:\ci\zeromq 1602704446950\work\src\epoll.cpp:100)
- configure: error: C compiler cannot create executables
- Clion compiles and runs a single C / cpp file
- configure: error: C compiler cannot create executables See `config.log’ for more details
- configure: error: no acceptable C compiler found in $PATH
- could not open `C:\Program Files\Java\jre1.8.0_191\lib\amd64\jvm.cfg’
- How to Solve apt get update problem: usr/lib/apt/methods/HTTPS could not be found_PUBKEY 7EA0A9C3F273FCD8
- Error: could not open `C:\Program Files\Java\jre1.8.0_211\lib\amd64\jvm.cfg’ (How to Fix)
- How to generate lib library with keil MDK and use lib Library
- C language string processing error warning, c4996, sprintf, predicted, c4996, strcpy, c4996, strcat
- Solution to “Ruby / San check”
- When installing oracle12c, the problem of “unable to check whether the specified location is on CFS” appears
- How to Use paho.mqtt.cpp
- main.cpp : (. Text + 0xd06): undefined reference to XX method | simple record
- After NPM run dev is running, the browser does not respond and reports an error in. / ~ / Babel loader / lib! / ~ / Vue loader / lib/ selector.js?type=script&in
- Re installing Android studio always fails to install SDK when installing software (solution)
- Debugging failed under vscode Ubuntu, unable to open libc-start. C raise. C, etc
- Alpine Linux executable file crash report error / lib / x86 not found_ 64 Linux GNU / libc.so solution
- Howto Install and Configure VTK on Ubuntu