LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2007, 04:56 AM   #1
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Rep: Reputation: 30
missing header files and vmware


hello all ive just done an:

Code:
sudo apt-get upgrade
on my Ubuntu box and its buggered up my Vmware install - This is very important that i get this fixed ASAP as i use it for work.

When i run vmware in the terminal i get this:

Code:
adrian@adrian:~$ vmware
vmware is installed, but it has not been (correctly) configured
for this system. To (re-)configure it, invoke the following command:
/usr/bin/vmware-config.pl.

so i run

Code:
sudo /usr/bin/vmware-config.pl

and it get to this part and asks for my kernel headers:
Code:
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

and i cant get it to get past this part:

Code:
adrian@adrian:~$ cd /usr/src/
adrian@adrian:/usr/src$ ls
kernel-source-2.4.27  kernel-source-2.4.27.tar  linux-headers-2.6.17-10  linux-headers-2.6.17-10-386

and if i try and install kernel-headers package:

Code:
adrian@adrian:/usr/src$ sudo apt-get install kernel-headers
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package kernel-headers is a virtual package provided by:
  kernel-headers-2.4.27-2-k7-smp 2.4.27-12
  kernel-headers-2.4.27-2-k7 2.4.27-12
  kernel-headers-2.4.27-2-k6 2.4.27-12
  kernel-headers-2.4.27-2-686-smp 2.4.27-12
  kernel-headers-2.4.27-2-686 2.4.27-12
  kernel-headers-2.4.27-2-586tsc 2.4.27-12
  kernel-headers-2.4.27-2-386 2.4.27-12
  kernel-headers-2.4.27-2 2.4.27-12
You should explicitly select one to install.
E: Package kernel-headers has no installation candidate
the versions are way off, please please help. thanks trscookie
 
Old 02-11-2007, 08:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well what version of kernel are you running? assuming you got it from apt there *must* be a suitable header package there too. it'll be looking for the *exact* equivalent, to what "uname -a" reports your current kernel version is, inlucding and patches and revisions. you may look to upgrade your kernel if you cna't find the right one. i can see above though you have a linux-headers-2.6 one, and i'd assume you are on a 2.6 kernel, so maybe you're just looking for the wrong package name?
 
Old 02-11-2007, 02:32 PM   #3
ericcarlson
Member
 
Registered: Jan 2002
Posts: 162

Rep: Reputation: 30
Theres definitely an issue here, I was about to post separately but its more appropriate here. Notice the build failure at the end even though the source matches:

login as: root
root@tiger's password:
Last login: Sun Feb 11 17:54:59 2007 from 192.168.62.200
[root@tiger ~]# cd /tmp
[root@tiger tmp]# uname -r
2.6.19-1.2895.fc6
[root@tiger tmp]# ls /usr/src/kernels/2.6.19-1.2895.fc6-i686/include/
acpi asm asm-generic asm-i386 config keys linux math-emu media mtd net pcmcia rdma rxrpc scsi sound video xen
[root@tiger tmp]# /usr/bin/vmware-config.pl
Making sure services for VMware Workstation are stopped.

Stopping VMware services:
Virtual machine monitor [ OK ]

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/kernels/2.6.19-1.2895.fc6-i686/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config2/vmmon-only'
make -C /usr/src/kernels/2.6.19-1.2895.fc6-i686/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config2/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config2/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config2/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config2/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config2/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config2/vmmon-only/common/task.o
CC [M] /tmp/vmware-config2/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config2/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-config2/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config2/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config2/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config2/vmmon-only'
Unable to make a vmmon module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config2/vmmon.o': -1 Invalid module format
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel. You may want to
rebuild a kernel based on that directory, or specify another directory.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

[root@tiger tmp]#
 
Old 03-08-2007, 09:04 AM   #4
babycarrot
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
same issue

I have the same issue in installing vmware workstation 5.5.3

it wont compile even if I select the correct header files

Quote:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/kernels/2.6.19-1.2895.fc6-i686/include] /lib/modules/2.6.19-1.2895.fc6/build/include

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Workstation 5.5.x.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config4/vmmon-only'
make -C /lib/modules/2.6.19-1.2895.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
CC [M] /tmp/vmware-config4/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config4/vmmon-only/linux/hostif.o
In file included from /tmp/vmware-config4/vmmon-only/linux/hostif.c:3608:
/tmp/vmware-config4/vmmon-only/linux/hostif_compat.h: In function ‘HostIF_IOAPICBaseV45’:
/tmp/vmware-config4/vmmon-only/linux/hostif_compat.h:466: error: ‘FIX_IO_APIC_BASE’ undeclared (first use in this function)
/tmp/vmware-config4/vmmon-only/linux/hostif_compat.h:466: error: (Each undeclared identifier is reported only once
/tmp/vmware-config4/vmmon-only/linux/hostif_compat.h:466: error: for each function it appears in.)
In file included from /tmp/vmware-config4/vmmon-only/linux/hostif.c:3608:
/tmp/vmware-config4/vmmon-only/linux/hostif_compat.h: In function ‘properties’:
/tmp/vmware-config4/vmmon-only/linux/hostif_compat.h:513: error: expected ‘:’ or ‘)’ before ‘UTS_RELEASE’
make[2]: *** [/tmp/vmware-config4/vmmon-only/linux/hostif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config4/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config4/vmmon-only'
Unable to build the vmmon module.


[root@rai src]# uname -r
2.6.19-1.2895.fc6
 
Old 03-08-2007, 12:37 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
ericcarlson,

I guess I should point out that I didn't have those errors compiling against the 64 bit version of that same kernel. I've recently upgraded the kernel again and I haven't tried recompiling vmware so I can't tell yet whether the issue affects the latest Fedora 64 bit kernel as well.

Btw, have you noted that babycarrot is getting different errors running the same kernel? Did you install kernel-devel too?
 
Old 03-12-2007, 12:28 PM   #6
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Original Poster
Rep: Reputation: 30
working

i ran a

sudo for i in `update upgrade`
do
aptitude $i
done

works fine now, cheers
 
Old 03-12-2007, 01:22 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by trscookie
i ran a

sudo for i in `update upgrade`
do
aptitude $i
done

works fine now, cheers
why?? what was wrong in just running "aptitude update; aptitude upgrade"? it's not a sledgehammer, but still that nut didn't even need cracking in the first place!
 
Old 03-13-2007, 04:10 AM   #8
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Original Poster
Rep: Reputation: 30
i think its a more interesting way of doing it, Linux is about choice after all!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing C header files? kushalkoolwal Programming 3 11-07-2005 04:52 AM
vmware looking for c header files for kernel zuessh Debian 4 07-23-2005 08:12 AM
VMware Config. header files? jasonmcneil0 Linux - Software 3 12-06-2004 12:08 AM
C Header files (VMWare Install) mr.linux.noob Linux - General 2 04-05-2004 11:33 AM
vmware error, cant find c header files artofluke Slackware 9 09-02-2003 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration