下面是我遇到该问题后的解决过程,记录下来,也当是温习(系统是Fedora8,学校还在学这个版本):
首先把安装光盘加载上去,卸载再挂载,这样方便后面的yum配置
umount /dev/sr0
mount /dev/sr0 /media
编辑yum文件之前可以把原来的yum备份一下
mkdir /etc/yum.repos.d/mm
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/mm
编辑yum文件
vim /etc/yum.repos.d/default.repo
文件配置内容
[Server]
name=Server
baseurl=file:///media/
enable=1
gpgcheck=0
上面步骤保存好后,开始更新yum
yum clean all
yum -y update #更新一下,可以不用
开始安装gcc环境(遇到的问题,也写出来了)
#yum install gcc
Existing lock /var/run/yum.pid: another copy is running as pid 2704.
Another app is currently holding the yum lock; waiting for it to exit…
# kill -9 2704
# yum install gcc
Installing:
gcc i386 4.1.2-33 Server 5.2 M
Installing for dependencies:
glibc-devel i386 2.7-2 Server 2.0 M
glibc-headers i386 2.7-2 Server 609 k
kernel-headers i386 2.6.23.1-42.fc8 Server 669 k
Running Transaction
Installing: kernel-headers ######################### [1/4]
Installing: glibc-headers ######################### [2/4]
Installing: glibc-devel ######################### [3/4]
Installing: gcc ######################### [4/4]
顺利安装完后开始安装vmware-tools
[root@localhost repodata]# cd
[root@localhost ~]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# ./vmware-install.pl