我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
-
- 帖子: 10
- 注册时间: 2008-08-30 22:16
我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
- wjchen
- 帖子: 583
- 注册时间: 2011-05-02 19:08
- 系统: ubuntu 12.04
Re: 我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
代码: 全选
/usr/src/linux-headers-2.6.35-22/include
-
- 帖子: 10
- 注册时间: 2008-08-30 22:16
Re: 我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
如图所示
wjchen 写了:代码: 全选
/usr/src/linux-headers-2.6.35-22/include
- wjchen
- 帖子: 583
- 注册时间: 2011-05-02 19:08
- 系统: ubuntu 12.04
Re: 我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
首先用uname -r命令找到当前的linux内核版本,我这里的版本为3.0.0-15-generic
然后路径如下:
然后路径如下:
代码: 全选
/usr/src/linux-headers-3.0.0-15-generic/include
-
- 帖子: 10
- 注册时间: 2008-08-30 22:16
Re: 我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
不管怎么弄,我把所有的目录都试了遍都不行的。wjchen 写了:首先用uname -r命令找到当前的linux内核版本,我这里的版本为3.0.0-15-generic
然后路径如下:代码: 全选
/usr/src/linux-headers-3.0.0-15-generic/include
-
- 帖子: 10
- 注册时间: 2008-08-30 22:16
Re: 我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
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/include
The path "/usr/src/linux-headers-2.6.35-22/include" is a kernel header file
directory, but it does not contain the file "linux/version.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.
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/include
The path "/usr/src/linux-headers-2.6.35-22/include" is a kernel header file
directory, but it does not contain the file "linux/version.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.
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
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic-pae). Even if the module were
to compile successfully, it would not load into the running kernel.
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-pae/include
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic-pae). Even if the module were
to compile successfully, it would not load into the running kernel.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-headers-lbm-2.6.35-22-generic/include
The path "/usr/src/linux-headers-lbm-2.6.35-22-generic/include" is an existing
directory, but it does not contain a "linux" subdirectory as expected.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-headers-lbm-2.6.35-22-generic-pae/include
The path "/usr/src/linux-headers-lbm-2.6.35-22-generic-pae/include" is an
existing directory, but it does not contain a "linux" subdirectory as expected.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
kernel? [/usr/src/linux/include] /usr/src/linux-headers-2.6.35-22/include
The path "/usr/src/linux-headers-2.6.35-22/include" is a kernel header file
directory, but it does not contain the file "linux/version.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.
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/include
The path "/usr/src/linux-headers-2.6.35-22/include" is a kernel header file
directory, but it does not contain the file "linux/version.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.
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
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic-pae). Even if the module were
to compile successfully, it would not load into the running kernel.
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-pae/include
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic-pae). Even if the module were
to compile successfully, it would not load into the running kernel.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-headers-lbm-2.6.35-22-generic/include
The path "/usr/src/linux-headers-lbm-2.6.35-22-generic/include" is an existing
directory, but it does not contain a "linux" subdirectory as expected.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-headers-lbm-2.6.35-22-generic-pae/include
The path "/usr/src/linux-headers-lbm-2.6.35-22-generic-pae/include" is an
existing directory, but it does not contain a "linux" subdirectory as expected.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
-
- 帖子: 10
- 注册时间: 2008-08-30 22:16
Re: 我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
用uname -r的结果是:
2.6.35-22-generic-pae
但是指向这个目录的时候会报错,如下:
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-pae/include
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic-pae). Even if the module were
to compile successfully, it would not load into the running kernel.
2.6.35-22-generic-pae
但是指向这个目录的时候会报错,如下:
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-pae/include
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic-pae). Even if the module were
to compile successfully, it would not load into the running kernel.
- wjchen
- 帖子: 583
- 注册时间: 2011-05-02 19:08
- 系统: ubuntu 12.04
Re: 我在ubuntu装vmtools但总是提示如图的情况,不知道该指哪个路径给它
用uname -r的结果是:
2.6.35-22-generic-pae
但是指向这个目录的时候会报错,如下:
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-pae/include
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-22-generic-pae). Even if the module were
to compile successfully, it would not load into the running kernel.
代码: 全选
cd /usr/src/linux-headers-2.6.35-22-generic-pae/include
sudo cp -p generated/utsrelease.h linux/utsrelease.h
sudo cp -p generated/autoconf.h linux/autoconf.h
再不行,用virtualbox。