zwd 发表于 2016-1-5 15:01:37

用vmware workstation8安装fedora记录

今天用vmware workstation8 装了一下fedora,过程有很多问题需要注意,现在把主要的东西记录下来,方便以后查看。
装这个糸统基本就是next就可以了,没什么可说的,一般不会有什么问题的。主要是在安装vmware tools时花费了不少时间。
安装vmware tools的具体步骤,这个博客上写的很详细
http://www.cnblogs.com/kingkoo/archive/2007/12/28/1018613.html
基本步骤按着上面说的做就可以了,不过,出现了两个新问题
一个问题就是找不到gcc的问题,
Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? yes
What is the location of the gcc program on your machine?
这个是我的糸统没有安装gcc,下载安装就可以了,安装命令
查看是不是安装了gcc,用以下命令:rpm -ql gcc
如果没有安装会显示:package gcc is not installed
安装gcc用这个命令:yum -y install gcc就会自动的下载安装。安装完成后
在What is the location of the gcc program on your machine?后边输入gcc的目录/usr/bin/gcc点回车就OK了
第二个问题是
Searching for a valid kernel header path...
The path "" is not a valid path to the 3.1.0-7.fc16.i686 kernel headers.
Would you like to change it? yes      
Enter the path to the kernel header files for the 3.1.0-7.fc16.i686 kernel?
这个问题,需要安装与系统内核配套的开发包。
查看内核: uname -r
内核头文件C header files下载地址:
http://rpmfind.net/linux/rpm2html/search.php?query=kernel-devel
打开地址下载和自己糸统相应的rpm包,我的糸统是3.1.0-7.fc16.i686,所以我就下载kernel-devel-3.1.0-7.fc16.i686.rpm,可以在linux上直接下载,我用的是wget下载,因为我的机器没有装wget所以我先装了wget,用命令yum -y install wget

下载kernel-devel-3.1.0-7.fc16.i686.rpm之后,
用命令rpm -ivh kernel-devel-3.1.0-7.fc16.i686.rpm安装。
最后我的这个路径为:/usr/src/kernels/3.1.0-7.fc16.i686/include
问题解决,重启糸统就可以随意的拖文件从win7到虚拟的糸统或着从虚拟的糸统到win7.
共享windows下文件夹:
在启动虚拟机linux系统的情况下,进入VMWARE的菜单 /vm/settings/options/shared folders
创建共享文件夹,并设置好linux下的名字,完成后在linux虚拟机的/mnt/hgfs下可看到该文件夹
页: [1]
查看完整版本: 用vmware workstation8安装fedora记录