由于之前安装RedHat Enterprise Linux 5 时候只安装了服务器环境 没有安装开发环境 导致 服务器 无法 编译 代码只好重新安装 gcc 了。 首先想到的是 用 yum 来安装 运行: yum -y install gcc gcc-c++ 提示 this system is not registered with RHN... 您的系统没有在红帽网络上注册... yum有问题了。。。 蛋疼ing... 还是 老老实实的 cd 安装。。。 mount /dev/cdrom /mnt *将光驱挂在到 mnt目录 cd /mnt/Server *进入光驱目录 注意大小写! 依次执行:
[root@rhel5 Server]# rpm -ivh kernel-headers-2.6.18-53.el5.i386.rpm
[root@rhel5 Server]# rpm -ivh glibc-headers-2.5-18.i386.rpm
[root@rhel5 Server]# rpm -ivh glibc-devel-2.5-18.i386.rpm
[root@rhel5 Server]# rpm -ivh libgomp-4.1.2-14.el5.i386.rpm
[root@rhel5 Server]# rpm -ivh gcc-4.1.2-14.el5.i386.rpm
[root@rhel5 Server]# rpm -ivh libstdc++-devel-4.1.2-14.el5.i386.rpm
[root@rhel5 Server]# rpm -ivh gcc-c++-4.1.2-14.el5.i386.rpm 安装完毕! rpm -q gcc 提示: gcc-4.1.1-52.el5 安装成功! 降低采样率 Linux下压缩mp3文件嵌入式Linux下使用3G卡上网相关资讯 redhat
- 为什么像 RedHat 那样的开源旗手很 (12/23/2014 07:50:53)
- 红帽目录服务RHDS(Red Hat (11/28/2012 19:14:22)
- RedHat 6 配置网卡team (09/28/2012 18:52:50)
| - RedHat Linux 用户登录认证失败 (06/24/2014 19:56:55)
- Red Hat Enterprise Linux 5.8日志 (09/29/2012 11:41:27)
- Red Hat Enterprise Linux 5--- (09/12/2012 17:10:35)
|
本文评论 查看全部评论 (0)