linux安装cmake时报的gcc错误

我就是木暮 2014-10-20 05:16:39
如题。
背景:服务器不能上网。想安装什么东西只能局域网把包导进去。
具体现象:
安装MySQL的时候要先安装cmake。
安装cmake的时候(下的tar.gz包)报了一个错误。
附图:

想问的是我已经安装了gcc,为什么还提示我找不到C complier
另附rpm -qa |grep cc的结果图:
...全文
467 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
引用 3 楼 Isildur2010 的回复:
[quote=引用 2 楼 micropentium6 的回复:] your gcc may be too old to compile cmake 3.4.6 is a pretty old edition. try to install a newer 4.X version....
原来的版本不删掉可以直接安装新的版本吗?[/quote] yes you can, but you will have to set up environment variables before you run configure so the configure could know where to pick the right gcc...
我就是木暮 2014-10-21
  • 打赏
  • 举报
回复
引用 2 楼 micropentium6 的回复:
your gcc may be too old to compile cmake 3.4.6 is a pretty old edition. try to install a newer 4.X version....
原来的版本不删掉可以直接安装新的版本吗?
  • 打赏
  • 举报
回复
your gcc may be too old to compile cmake 3.4.6 is a pretty old edition. try to install a newer 4.X version....
铖邑 2014-10-20
  • 打赏
  • 举报
回复
设置一下CC和CXX环境变量看看

18,777

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧