PDA

View Full Version : [ubuntu] WMwareWorkstation installation problem.



hoboy
February 4th, 2009, 01:02 PM
I am trying to install VMwareWorkstation from this link
https://help.ubuntu.com/community/VMware/Workstation

When I run this command sudo aptitude install build-essential linux-kernel-headers linux-kernel-devel on console I get the following errors


luc@ubuntu:~$ sudo aptitude install build-essential linux-kernel-headers linux-kernel-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Couldn't find any package whose name or description matched "linux-kernel-devel"
Couldn't find any package whose name or description matched "linux-kernel-devel"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

ncubede
February 4th, 2009, 01:07 PM
You may want to drop the linux-kernel-devel part.
All that VMware needs is to compile its modules,
so linux-headers-.* need to be installed for the kernel you are running.

I'd suggest to install build-essential linux-headers-generic and then leave it at that (assuming you installed linux-image-generic as the kernel selector)

hoboy
February 4th, 2009, 01:11 PM
You may want to drop the linux-kernel-devel part.
All that VMware needs is to compile its modules,
so linux-headers-.* need to be installed for the kernel you are running.

I'd suggest to install build-essential linux-headers-generic and then leave it at that (assuming you installed linux-image-generic as the kernel selector)

Thanks for your time how to I install
build-essential linux-headers-generic ?

binbash
February 4th, 2009, 01:18 PM
you have to install kernel headers matching your kernel.check your kernel with uname -a then open synaptic and search for linux-headers, then install the matching one

ncubede
February 4th, 2009, 01:27 PM
I'd normally do:


sudo apt-get update
sudo apt-get install build-essential linux-headers-generic


Please note, that this will only work, if you really installed linux-image-generic and have booted this kernel.

Additionally I'd suggest people from time to time do a dist upgrade to pull in bugfixes


sudo apt-get update
sudo apt-get dist-upgrade



Thanks for your time how to I install
build-essential linux-headers-generic ?

ncubede
February 4th, 2009, 01:28 PM
That will be fine for the moment, but if he has a meta package like linux-image-generic installed, he needs the matching meta package for the linux headers as well, or after the next dist-upgrade the same question will be asked again.


you have to install kernel headers matching your kernel.check your kernel with uname -a then open synaptic and search for linux-headers, then install the matching one

hoboy
February 4th, 2009, 01:40 PM
you have to install kernel headers matching your kernel.check your kernel with uname -a then open synaptic and search for linux-headers, then install the matching one

I have run uname with sudo and without sudo the result is the same
luc@ubuntu:~$ uname -a
Linux ubuntu 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC 2009 x86_64 GNU/Linux
luc@ubuntu:~$

what can I seach in synacptic in the string ?

ncubede
February 4th, 2009, 02:56 PM
the package you are looking for then is called: linux-headers-2.6.27-11-generic, which is the one selected from intrepid updates and proposed at the moment.

apt-get install linux-headers-2.6.27-11-generic should do it.

If you have linux-image-generic installed, you should also install linux-headers-generic, though, so you stay up to date in the future.


I have run uname with sudo and without sudo the result is the same
luc@ubuntu:~$ uname -a
Linux ubuntu 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC 2009 x86_64 GNU/Linux
luc@ubuntu:~$

what can I seach in synacptic in the string ?

hoboy
February 4th, 2009, 03:24 PM
the package you are looking for then is called: linux-headers-2.6.27-11-generic, which is the one selected from intrepid updates and proposed at the moment.

apt-get install linux-headers-2.6.27-11-generic should do it.

If you have linux-image-generic installed, you should also install linux-headers-generic, though, so you stay up to date in the future.

luc@ubuntu:~$ sudo apt-get install linux-headers-2.6.27-11-generic
[sudo] password for luc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.27-11-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
luc@ubuntu:~$

hoboy
February 4th, 2009, 03:26 PM
luc@ubuntu:~$ sudo apt-get install linux-headers-2.6.27-11-generic
[sudo] password for luc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.27-11-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
luc@ubuntu:~$

ncubede---
I am loosing trac here how this one help to install VMwareWorkstation ?

ncubede
February 4th, 2009, 03:28 PM
Awesome, then just install VMware workstation (run the bundle install) and start it up. It'll say it needs to compile a few modules and then continue startup (at least 6.5 does, before that vmware-config.pl needed to be run).

ncubede
February 4th, 2009, 03:30 PM
The only thing Vmware needs is to be able to compile kernel modules. For this you need the linux source or the headers and the essential build environment. That is all. My recommendation is to just install VMware workstation and only if that fails to build the kernel modules to look at something else, but the howto guide referred to in the first post, assumed a pretty stripped down system.


ncubede---
I am loosing trac here how this one help to install VMwareWorkstation ?

hoboy
February 4th, 2009, 03:31 PM
Awesome, then just install VMware workstation (run the bundle install) and start it up. It'll say it needs to compile a few modules and then continue startup (at least 6.5 does, before that vmware-config.pl needed to be run).

sorry about my question in the link upward ti stated that
Navigate to where the .bundle VMWare file is, then type this in

gksudo bash ./VMware-Workstation-6.5.0-118166.i386.bundle
where is located VMware-Workstation-6.5.0-118166.i386.bundle ?

ncubede
February 4th, 2009, 04:31 PM
you need to browse http://www.vmware.com and download it (6.5.1, not 6.5.0)

wentzr
August 19th, 2011, 01:11 AM
how about just:

apt-get install build-essential linux-headers-`uname -r`

use backticks ` around uname -r and do it in one fell swoop.