cmake mysql编译错误_cmake编译安装错误-求助

在尝试安装CMake 2.8.7版本时遇到了编译错误。在运行`./configure`命令后,g++在处理`cmStandardIncludes.cxx`文件时,在/usr/lib/gcc/x86_64-redhat-linux/4.1.2/路径下的头文件中遇到预期符号';'的错误,导致gmake进程返回错误1。这可能是由于编译器版本不匹配或者依赖库的问题。
摘要由CSDN通过智能技术生成

[root@longjiang-32 ~]# cd cmake-2.8.7

[root@longjiang-32 cmake-2.8.7]# ./configure

---------------------------------------------

g++  -I/root/cmake-2.8.7/Bootstrap.cmk -I/root/cmake-2.8.7/Source   -I/root/cmake-2.8.7/Bootstrap.cmk -c /root/cmake-2.8.7/Source/cmStandardIncludes.cxx -o cmStandardIncludes.o

/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h: In constructor ‘std::_Rb_tree<_key _val _keyofvalue _compare _alloc>::_Rb_tree_impl<_key_compare _is_pod_comparator>::_Rb_tree_impl(const typename _Alloc::rebind<:_rb_tree_node> >::other&, const _Key_compare&)’:

/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:412: error: expected `;'

gmake: *** [cmStandardIncludes.o] Error 1

---------------------------------------------

Error when bootstrapping CMake:

Problem while running gmake

---------------------------------------------

Log of errors: /root/cmake-2.8.7/Bootstrap.cmk/cmake_bootstrap.log

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值