针对您遇到的错误 configure: error: c preprocessor "/lib/cpp" fails sanity check,以下是一些可能的解决步骤和原因分析,希望能帮助您解决问题: 1. 确认C预处理器"/lib/cpp"的安装与路径正确性 检查安装:确保您的系统中安装了C预处理器。在Linux系统中,这通常是cpp,它是GCC编译器套件的一部分。您可以通过运...
2. 配置环境变量 如果环境变量配置错误导致找不到C预处理器,您可以尝试设置PATH环境变量,以便编译器能够找到正确的位置,编辑您的shell配置文件(如.bashrc或.bash_profile),添加以下行: export PATH=/path/to/cpp/directory:$PATH 将/path/to/cpp/directory替换为实际的C预处理器目录路径,保存文件后,重新加载配置文...
2. 配置环境变量 如果环境变量配置错误导致找不到C预处理器,您可以尝试设置PATH环境变量,以便编译器能够找到正确的位置,编辑您的shell配置文件(如.bashrc或.bash_profile),添加以下行: export PATH=/path/to/cpp/directory:$PATH 将/path/to/cpp/directory替换为实际的C预处理器目录路径,保存文件后,重新加载配置文...
1 configure: error: C preprocessor"arm-linux-gnueabihf-g++"fails sanity check 从我的配置意图来看g++是配置给CPP也就是C++的编译器,C的编译器配置的是gcc,从报错信息来看明显是把我的C++的编译器配置给了C,以前这样配置没碰到这种错误,于是上网搜索了一下,在stack Overflow上找到一篇有点苗头 https://stackov...
error: C++ preprocessor "/lib/cpp" fails sanity check错误解决方法 一:错误发生情景: 安装gcc时,使用make命令时,报如下错误: ... configure: error: C++ preprocessor"/lib/cpp"fails sanity check ... 二、错误原因: 缺少必要的C++库。 三、解决: (...
php编译报错configure: error: C++ preprocessor “/lib/cpp” fails sanity check 以及解决办法 php安装报错,其中一个小细节: checkinghowtoruntheC++preprocessor.../lib/cppconfigure:error:in`/usr/local/src/php-7.0.10':configure:error:C++preprocessor"/lib/cpp"failssanitycheck ...
最近在一台linux服务器上部署nagios,在安装插件时,make 时老是出现如下错误: configure: error: C preprocessor "/lib/cpp" fails sanity check 服务器系统信息: # lsb_release -a LSB Version: 1.3 Distributor ID: RedHatEnterpriseAS Description: Red Hat Enterprise Linux AS release 4 (Nahant) ...
configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. 缺少gcc-c++,安装gcc-c++,使用yum命令 yum install gcc-c++ 远程安装,能查找到相应的安装包,却总是无法安装 Trying other mirror. Error Downloading Packages: ...
错误:configure:error:C preprocessor"/lib/cpp"fails sanity check 原因:gcc的组件没装全 解决:apt-get install build-essential 错误:Can't find X includes.Please check your installation and add the correct paths!原因:没有X的包含文件 解决:安装xlibs-dev即可 错误:Qt(>=Qt3.0)(headers and ...
GCCCC++C# 执行./configure命令的时候,出现以下错误:错误一:configure: error: no acceptable C compiler found in $PATH 原因:c编译器的相关package没有安装解决办法:安装gcc 可用通过命令:#yum install gcc来安装gcc 错误二:configure: error: C++ preprocessor "/lib/cpp" fails sanity check 原因:c++编译器的...