linux安装gcc
2014-02-11 14:53
225 查看
方法:输入命令:
:(1) :yum -y install gcc
(2) yum -y install gcc-c++
(3)yum install make
我的再输入 yum -y install gcc 时候报错了:
[root@cddserver2 ~]# yum -y install gcc-*
Loaded plugins: fastestmirror, presto
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
原因:
dns服务器没有配置正确
解决办法:
1、打开文件/etc/resolv.conf在其中添加:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
2、然后重启网卡:使用命令: service network restart
然后输入:
:(1) :yum -y install gcc
(2) yum -y install gcc-c++
(3)yum install make
:(1) :yum -y install gcc
(2) yum -y install gcc-c++
(3)yum install make
我的再输入 yum -y install gcc 时候报错了:
[root@cddserver2 ~]# yum -y install gcc-*
Loaded plugins: fastestmirror, presto
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
原因:
dns服务器没有配置正确
解决办法:
1、打开文件/etc/resolv.conf在其中添加:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
2、然后重启网卡:使用命令: service network restart
然后输入:
:(1) :yum -y install gcc
(2) yum -y install gcc-c++
(3)yum install make
相关文章推荐
- Linux下GCC 4.9.3安装
- arm-linux-gcc 4.4.3 安装
- Linux 安装指定版本GCC方法
- Ubantu下安装配置arm-linux-gcc实践
- Linux平台上,GCC等工具包的最便捷安装方法
- Ubuntu 9.04安装arm-linux-gcc交叉编译工具
- Linux升级安装GCC: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.15 not found
- Ubuntu 9.04安装arm-linux-gcc交叉编译工具
- 编译小结(1) GCC多平台安装(Linux,Aix,HP-UX,Solaris)及编译参数
- LInux中安装gcc-c++时报错和原有gcc版本冲突
- 详解Linux安装GCC方法
- Ubuntu 11.04安装arm-linux-gcc-4.4.3/arm-none-linux-gnueabi-gcc安装包 分类: arm-linux-Ubuntu 2013-07-22 16:28 371人阅读 评论(0) 收藏
- linux中yum通过光盘安装gcc
- 在Linux下如何使用命令安装gcc/g++, gdb, vim
- ARM-LINUX-GCC 4.4.3安装(ubuntu下)
- Ubuntu 9.04安装arm-linux-gcc交叉编译工具
- 【嵌入式linux】(第二步):安装交叉编译器(arm-linux-gcc)以及集成开发环境(eclipse)
- Linux安装编译GCC
- 安装arm-linux-gcc环境变量的设置
- 嵌入式 交叉编译环境安装arm-linux-gcc