安装Ubuntu10.10的vm tools
2013-10-31 14:13
316 查看
Install VMware Tool
#sudo -i 切换到root用户下
root# ./vmware-install.pl
Ubuntu 10.10 在安装的时候目前会碰到几个问题:
Console代码
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] <直接按 Enter>
The path "/usr/src/linux/include" is not an existing directory.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] <直接按 Enter>
The path "/usr/src/linux/include" is not an existing directory.
由于 Kernel 版本是 APT 抓下來的最新版,所以会需要输入 “/usr/src/linux-headers-2.6.35-22-generic/include “
要注意的是,VMWare Tools 安装时会询问目前系统使用的 Kernel header,所以如果 /usr/src 下有多个 Kernel header 目录,最好先执行 “uname -r“ 指令,确认应该使用那个本版。
Console代码
What is the location of the directory of C header files
that match your running kernel? 【/usr/src/linux/include]
/usr/src/linux-headers-2.6 . 35 - 22 -generic/include
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-headers-2.6.35-22-generic/include
按回车以后,还是报错说,指定的Kernel headers喝当前系统使用的版本不匹配。
Console代码
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6 . 35 - 22 -generic). Even if the module were to
compile successfully, it would not load into the running kernel.
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic). Even if the module were to
compile successfully, it would not load into the running kernel.
但
事实并不是不匹配,而是 Kernel 中有一个变量 UTS_RELEASE 的不存在了。以前这个定义放在
/usr/src/linux-headers-2.6.35-22-generic/include/linux/version.h
,而现在已经移到了/usr/src/linux-headers-2.6.35-22-generic/include/generated
/utsrelease.h。所以简单的方法,我们只需要在version.h中添加 #define UTS_RELEASE
"2.6.35-22-generic" (具体值使用 “uname -r“ 查看)
接下来继续,又会有新的错误提示!! -_-|| 找不到 autoconf.h 原因是因为 autoconf.h 不再VMware tools 安装程序预设的寻址目录中。
Console代码
The path "/usr/src/linux-headers-2.6.35-22-generic/include" is a kernel header
file directory, but it does not contain the file "linux/autoconf.h" as
expected. This can happen if the kernel has never been built, or if you have
invoked the "make mrproper" command in your kernel directory. In any case, you
may want to rebuild your kernel.
The path "/usr/src/linux-headers-2.6.35-22-generic/include" is a kernel header
file directory, but it does not contain the file "linux/autoconf.h" as
expected. This can happen if the kernel has never been built, or if you have
invoked the "make mrproper" command in your kernel directory. In any case, you
may want to rebuild your kernel.
可以简单的把它链接过来:
cd /usr/src/linux-headers-2.6.35-22-generic/include/linux
sudo ln -s ../generated/autoconf.h ./ (../generated/autoconf.h是原文件。)
后面还会陆续报一些错误,不过通过回车等也可以继续安装并使用了
阅读(358) | 评论(0) | 转发(0) |
0
上一篇:ALSA之codec分析
下一篇:U-Boot简单流程
相关热门文章
linux 常见服务端口
【ROOTFS搭建】busybox的httpd...
什么是shell
linux socket的bug??
linux的线程是否受到了保护?...
ChinaUnix & ITPUB社区12周年...
ssh连接出现以下提示,求解...
如何扩展MYSQL
准备做一个大型门户,用户什么...
gbk or utf8
给主人留下些什么吧!~~
评论热议
#sudo -i 切换到root用户下
root# ./vmware-install.pl
Ubuntu 10.10 在安装的时候目前会碰到几个问题:
Console代码
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] <直接按 Enter>
The path "/usr/src/linux/include" is not an existing directory.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] <直接按 Enter>
The path "/usr/src/linux/include" is not an existing directory.
由于 Kernel 版本是 APT 抓下來的最新版,所以会需要输入 “/usr/src/linux-headers-2.6.35-22-generic/include “
要注意的是,VMWare Tools 安装时会询问目前系统使用的 Kernel header,所以如果 /usr/src 下有多个 Kernel header 目录,最好先执行 “uname -r“ 指令,确认应该使用那个本版。
Console代码
What is the location of the directory of C header files
that match your running kernel? 【/usr/src/linux/include]
/usr/src/linux-headers-2.6 . 35 - 22 -generic/include
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-headers-2.6.35-22-generic/include
按回车以后,还是报错说,指定的Kernel headers喝当前系统使用的版本不匹配。
Console代码
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6 . 35 - 22 -generic). Even if the module were to
compile successfully, it would not load into the running kernel.
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic). Even if the module were to
compile successfully, it would not load into the running kernel.
但
事实并不是不匹配,而是 Kernel 中有一个变量 UTS_RELEASE 的不存在了。以前这个定义放在
/usr/src/linux-headers-2.6.35-22-generic/include/linux/version.h
,而现在已经移到了/usr/src/linux-headers-2.6.35-22-generic/include/generated
/utsrelease.h。所以简单的方法,我们只需要在version.h中添加 #define UTS_RELEASE
"2.6.35-22-generic" (具体值使用 “uname -r“ 查看)
接下来继续,又会有新的错误提示!! -_-|| 找不到 autoconf.h 原因是因为 autoconf.h 不再VMware tools 安装程序预设的寻址目录中。
Console代码
The path "/usr/src/linux-headers-2.6.35-22-generic/include" is a kernel header
file directory, but it does not contain the file "linux/autoconf.h" as
expected. This can happen if the kernel has never been built, or if you have
invoked the "make mrproper" command in your kernel directory. In any case, you
may want to rebuild your kernel.
The path "/usr/src/linux-headers-2.6.35-22-generic/include" is a kernel header
file directory, but it does not contain the file "linux/autoconf.h" as
expected. This can happen if the kernel has never been built, or if you have
invoked the "make mrproper" command in your kernel directory. In any case, you
may want to rebuild your kernel.
可以简单的把它链接过来:
cd /usr/src/linux-headers-2.6.35-22-generic/include/linux
sudo ln -s ../generated/autoconf.h ./ (../generated/autoconf.h是原文件。)
后面还会陆续报一些错误,不过通过回车等也可以继续安装并使用了
阅读(358) | 评论(0) | 转发(0) |
0
上一篇:ALSA之codec分析
下一篇:U-Boot简单流程
相关热门文章
linux 常见服务端口
【ROOTFS搭建】busybox的httpd...
什么是shell
linux socket的bug??
linux的线程是否受到了保护?...
ChinaUnix & ITPUB社区12周年...
ssh连接出现以下提示,求解...
如何扩展MYSQL
准备做一个大型门户,用户什么...
gbk or utf8
给主人留下些什么吧!~~
评论热议
相关文章推荐
- ALSA之codec分析
- ALSA之PCM分析
- 工作队列work queue
- 对INIT_WORK的理解
- 程序员 笔试资料 个人整理
- Linux 输入子系统
- LInux 内核配置系统
- android u-boot分析
- Eclipse快捷方式
- 迷你版本的Nginx定时机制的实现
- Android Button特效selector+shape
- 关于android中BaseAdapter的理解
- android中关于消息Message与Handler的详解
- Android多线程设计模式---wait()和notify()机制
- android入门理解android的生命周期
- windows环境用GIT下载android源码
- SSH Secure Shell Client—远程控制Linux工具
- Linux下安装eclipse
- Android的PackageManager和ActivityManager的功能简介
- 怎样使用Eclipse来开发Android源码