+ -
当前位置:首页 → 问答吧 → 关于安装GCC

关于安装GCC

时间:2011-06-21

来源:互联网

各位大侠,本人光驱坏了,无法从光盘上安装GCC,下载了GCC4.6.0.tar.bz2的版本。为什么安装不上啊。请指教
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@Fedora ~]# ll
总用量 69992
-rw-------. 1 root root     1650  6月 15 21:39 anaconda-ks.cfg
-rw-r--r--. 1 root root 71579535  6月 22 00:45 gcc-4.6.0.tar.bz2
drwxr-xr-x. 2 root root     4096  6月 21 23:07 installationfile
-rw-r--r--. 1 root root    54318  6月 15 21:39 install.log
-rw-r--r--. 1 root root    12382  6月 15 21:38 install.log.syslog
[root@Fedora ~]# cd installationfile
[root@Fedora installationfile]# ll
总用量 0
[root@Fedora installationfile]# ls
[root@Fedora installationfile]# tar zxvf gcc-4.6.0.tar.bz2
tar (child): gcc-4.6.0.tar.bz2:无法 open: 没有那个文件或目录
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
[root@Fedora installationfile]# ^C


作者: ilovezmw   发布时间: 2011-06-21

老版本的linux要两步,一步是解压缩,一步是解包
bzip2 -d **.tar.bz2   //将文件解压成**.tar
tar -xf **.tar //解包
现在新出的linux版本,只要一步就可以解压完毕
tar -xf **.tar.bz2

转自百度!!!!!!

作者: 吕骏_32   发布时间: 2011-06-21

不知道可以不可以yum install gcc?

作者: wzb123   发布时间: 2011-06-21