C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details

Ubuntu 12.04环境下编译xapian时报此错误,因为从来没有在此系统下跑过C++,所以用C++编译器的时候出现此问题

出现该情况是由于c++编译器的相关package没有安装,以root用户登陆,在终端上执行:

  # sudo get-apt install glibc-headers

  # sudo get-apt install gcc-c++

也可以

  #sudo apt-get install build-essential

通过第二种方法安装完毕后,编译通过

C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details

时间: 2024-08-05 11:28:39

C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details的相关文章

configure: error: C++ preprocessor "/lib/cpp" fails sanity check 解决方法

configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. 缺少库文件,解决方法: # yum install glibc-headers gcc-c++

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

经过一翻折腾终于搞定了 在编译软件是 如果出现configure: error: C++ preprocessor "/lib/cpp" fails sanity check  这样的错误 在centos 终端下运行 yum install gcc-c++ 即可

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

在安装protobuf,知悉./Configure时候报错“error: C++ preprocessor "/lib/cpp" fails sanity check” 下面是转载过来的 mark 主要就是安装个buildf-essential包,这个包包含很多基本库 转 在某些软件的时候,运行./configure 会报错,错误提示为: configure: error: C++ preprocessor “/lib/cpp” fails sanity  check See `con

error: C++ preprocessor "/lib/cpp" fails sanity check错误解决方法

error: C++ preprocessor "/lib/cpp" fails sanity check 问题的解决 问题的根源是缺少必要的C++库.如果是CentOS系统,运行,如下命令解决: 1 yum install glibc-headers 2 3 yum install gcc-c++ Ubuntu系统中,运行命令: 1 apt-get install build-essential 2 3 apt-get install g++ 原文地址:https://www.cnb

执行configure报错configure: error: C++ preprocessor "/lib/cpp" fails sanity check

解决方案: 出现该情况是由于c++编译器的相关package没有安装,以root用户登陆,在终端上执行: # yum install glibc-headers # yum install gcc-c++ 2015-01-21 19:04:38

【转】linux configure报错configure: error: C++ preprocessor “/lib/cpp” fails sanity 的解决办法

/lib/cpp fails sanity check的解决 在某些软件的时候,运行./configure 会报错,错误提示为: configure: error: C++ preprocessor “/lib/cpp” fails sanity  check See `config.log’ for more details 解决办法:出现该情况是由于c++编译器的相关package没有安装,以root用户登陆,在终端上执行: # yum install glibc-headers # yum

mysqlbinlog备份时候报错Sanity check failed

今天在复习mysql的二进制日志时候,发现出了点问题,如下: mysqlbinlog -uroot -proot /usr/local/mysql/data/node1.000004 --start-datetime="2016-05-04 13:30:00" --stop-datetime="2016-05-04 13:45:00" > a.sql ERROR: Error in Log_event::read_log_event(): 'Sanity ch

Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.(转)

1.程序运行后异常显示: 解决方案:在项目上点击右键->properties->Java Build Path, remove掉Android Dependences即可 Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.(转),布布扣,bubuko.com Unable to execute dex: java.nio.BufferOverflowExc

PHP: configure: error: mysql configure failed. Please check config.log for more information.

为php增加mysql模块时报错 configure: error: mysql configure failed. Please check config.log for more information. 解决方法: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql-dir=/usr --with- mysqli=/usr/bin/mysql_config -