安装vmware工具:无法识别3.8.0-19通用内核文件的路径 [英] installing vmware tools: not recognizing path to 3.8.0-19-generic kernel files

查看:131
本文介绍了安装vmware工具:无法识别3.8.0-19通用内核文件的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我正在使用Lubuntu并使用vmplayer以VM的身份运行,并且试图安装vmware工具.

So I am using Lubuntu and running in as VM using vmplayer and I am trying to install vmware tools. After doing

./vmware-install.pl

并进行默认设置,现在说

and doing the default settings, it is now saying

The path "" is not a valid path to the 3.8.0-19-generic kernel headers. 
Would you like to cange it? [yes]

Enter the path to the kernel header files for the 3.8.0-19-generic kernel?

我什么时候做

whereis 3.8.0-19-generic kernel

它说

3.8:
kernel: /usr/src/linux-headers-3.8.0-30/kernel /usr/src/linux-headers-3.8.0-19/kernel  /usr/src/linux-headers-3.8.0-19-generic/kernel /usr/src/linux-headers-3.8.0-30-generic-kernel

我尝试了所有这四个方法,但没有一个起作用.仍然说该路径不是指向3.8.0-19-generic/kernel的有效路径.

I tried all four of them and none of the paths worked. It still said that the path is not a valid path to the 3.8.0-19-generic/kernel.

请注意,在我这么做之前

Note that before when I did

whereis 3.8.0-generic kernel

它只给了我'-19'内核,但是后来我做到了

it only gave me the '-19' kernels, but then I did

sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install linux-headers-generic

查看它是否可以解决任何问题,但不能解决.它添加了"-30"内核,但似乎无法解决问题.有什么问题的想法吗?

to see if it would fix anything but it didn't. It added the '-30' kernels but that didn't seem to fix the problems. Any ideas on what's wrong?

推荐答案

请记住阅读此问题的注释,因为其他用户提供了最新,更准确的解决方案.

Remember to read the comments of this question as other users provided more up-to-date and accurate solutions.

好吧,当我说的时候,我所做的是

Okay so what I did was, when it said

The path "" is not a valid path to the 3.8.0-19-generic kernel headers. 
Would you like to cange it?

我输入了'no',所以它停止了安装.然后我写了

I typed in 'no', so then it stopped the install. I then wrote the

usr/bin/vmware-config-tools.pl

再次

命令并自动执行,我认为跳过了步骤,并说

command again and it automatically, I think skipped the steps, and it said

The configuration of vmware tools 9.2.3 build-1031360 for linux for this running kernel  completed
successfully. you must restart your X session before any mouse or graphics cahnges can   take  effect.
you can now run vmware tools by invoking "/usr/bin/vmware-toolbox-cmd" from the command   line.
to enable X features (e.g., guest resolution fit, drag and drop, and file and text   copy/pase),
you will need to do one (or more) of the following:
1. manually start /usr/bin/vmware-user
2. log out and lokg back into your desktop sessionl and,
3. restart your X session

to use the vmxnet driver, restart networking using the following commands:
/etc/init.d/networking stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/networking start

如果我的VMware工具无法正常运行,我将在这篇文章中回复. 另外,还要感谢在不回覆或告诉我原因的情况下投了反对票的人.

If my VMware tools does not run properly, I will reply back in this post. Also, thanks to the person who voted this down without even replying or telling me why.

好的,我开始使用VMware,效果很好!我需要在主机操作系统和VM之间设置一个共享驱动器,并且需要运行

Okay I started using VMware, works good! I needed to set up a shared drive between my host OS and VM and I needed to run the

sudo vmware-config-tools.pl

再次

并在提示中说,路径'/usr/bin/gcc'看起来是有效的,'lib/modules/3.8.0-30-generic/build/include'的路径看起来是有效的(如果你读了我的帖子,如果你们没有的话

again and in the prompts, it said the path '/usr/bin/gcc' appears valid, the path at 'lib/modules/3.8.0-30-generic/build/include' appears to be valid (if you read my post, if you guys did not do

sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install linux-headers-generic

它可能会说'lib/modules/3.8.0-19-generic/build/include'而不是'lib/modules/3.8.0-30-generic/build/include').如果您使用的是"-19"而不是"-30",并且它不起作用,请尝试运行上面的两个命令,看看它是否有效.

it probably will say 'lib/modules/3.8.0-19-generic/build/include' instead of 'lib/modules/3.8.0-30-generic/build/include'). If you have '-19' and not '-30' and if it DOESN'T work, try running the two commands above and see if it works.

这篇关于安装vmware工具:无法识别3.8.0-19通用内核文件的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆