`
chenhua_1984
  • 浏览: 1246248 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

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

阅读更多

centos6.1

在安装tripwire的时候 报了个错误

checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

查阅资料

在某些软件的时候,运行./configure 会报错,错误提示为:

  configure: error: C++ preprocessor “/lib/cpp” fails sanity 
  check See `config.log’ for more details

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

  # yum install glibc-headers

  # yum install gcc-c++

分享到:
评论

相关推荐

    Linux 下 Nginx的安装:(解压,进入目录里面执行,./configure –-> make -> sudo make install)

    在这个阶段,你需要运行`./configure`脚本来配置编译选项。在标题中提到的配置中,`--prefix`用于设置Nginx的安装路径,默认为`/usr/local/nginx`。你可以根据需要添加其他配置参数。例如: ```bash ./configure...

    nginx安装教程

    sudo ./configure sudo make sudo make install # 安装zlib库 cd /usr/local/src sudo wget http://zlib.net/zlib-1.2.11.tar.gz sudo tar -zxvf zlib-1.2.11.tar.gz cd zlib-1.2.11 sudo ./configure sudo make ...

    解决usrlib64libstdc++.so.6和lib64libc.so.6版本过低问题

    [root@haughty glibc-2.14] ./configure --prefix=/usr/glibc-2.14 ``` #### 四、注意事项 1. **备份原库文件**:在替换之前最好备份原有的库文件,以免出现问题后无法恢复。 2. **环境变量检查**:确保修改后的...

    linux下编译安装libcurl(附使用示例)1

    然后,进入下载的源码目录,执行`./buildconf`命令来生成`configure`配置文件。这个步骤对于没有提供预构建`configure`的项目来说是必要的,因为它会根据你的系统环境设置相应的编译选项。 ```bash cd curl ./...

    amber安装过程命令记录

    ./configure --prefix=/home/$USERNAME/openmpi ``` 二、amber安装环境依赖更新补丁 在安装amber之前,需要更新amber安装环境依赖补丁,命令记录如下: ``` export AMBERHOME=/opt/amber/amber18 export CUDA_...

    linux下php+mysql+apatch搭建web服务器

    3. 配置 MySQL:./configure --help 4. 设置 MySQL 的安装目录:/usr/local/mysql 5. 设置 MySQL 的默认编码:GBK 6. 创建 MySQL 用户和组:groupadd mysql、useradd mysql -g mysql 7. 初始化 MySQL 数据库:./...

    libmount-2.32.tar.gz

    3. 执行`./configure --help`,了解配置选项,并根据需要指定路径。 4. 如果没有问题,运行`./configure`以配置编译环境。 5. 接下来,执行`make`进行编译。 6. 最后,用`make install`将编译好的库安装到系统中。 ...

    qt 安装缺少包 version“Glibc_2.9” not fount

    (2) ./configure也就是说不能直接在在glibc-2.9这个目录中进行./configure,必须重新建立一个目录后并且进入后再在刚才的目录下进行./configure,例如就是重新建立了一个目录glibc_build 进入这个目录后/roo/programes...

    安装lamp报错信息及解决方法

    /use/lib//usr/lib/libdb-4.2.so: could not read symbols: File in wrong format Notice: Following unknown configure options were used: usr/bin/ld: cannot find -lltdl /usr/bin/ld: cannot find -...

    linux_automake使用实例

    依次执行命令:aclocal,libtoolize -f -c,autoconf,automake --add-missing,./configure,make。 3、cd */project/swap 依次执行命令:aclocal,autoconf,automake --add-missing,./configure,make。 4、cd *...

    ffmpeg-2.13 ubuntu安装配置文件 大全

    1.2.3 ./configure 1.2.4 make 1.2.5 make install 2. 安装autoconf、automake、libtool sudo apt-get install autoconf automake libtool 3. 安装libopencore-amrnb-dev libopencore-amrwb-dev sudo apt-...

    安装linux编译时报apr错误的解决方法

    ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr make sudo make install ``` 6. **启动httpd**:安装完成后,你可以启动httpd服务,测试是否成功: ```bash sudo /usr/local/apache2/bin/...

    ./nginx: No such file or directory

    我用的是ubuntu18.04安装nginx 一般来说我们安装的nginx文件结构大致是这样的: 1. 所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下 2.... 3.... 4.... 5....

    nginx-1.0.5最新稳定版

    状况:./configure: error: the HTTP rewrite module requires the PCRE library. 解决:yum -y install pcre-devel 安装相应的包 2.缺少zlib 状况: ./configure: error: the ...

    PHP编译configure时常见错误的总结

    1. **错误:configure: error: No curses/termcap library found** 解决方案:在CentOS上,应运行`yum -y install ncurses-devel`;在Debian上,运行`apt-get install libncurses5-dev`。 2. **错误:configure: ...

    apr-1.7.0.zip

    1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file or directory ..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr

    httpd-2.4.41.rar

    源码编译:亲测有效! 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file ..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr

    libmodbus-3.1.6

    ./configure --host=arm-fsl-linux-gnueabi --enable-static --prefix=/mnt/hgfs/E/共享目录/yangfan/Modbus/install/ ./configure --host=arm-linux-gnueabihf --enable-static --prefix=/mnt/hgfs/E/共享目录/...

    apr-util-1.6.1.zip

    1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file or directory ..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr

Global site tag (gtag.js) - Google Analytics