Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been searching for the past few hours trying to resolve this problem, but to no avail!
I am trying to install VMware, and have got everything working till it asks for the directory that has the C header files
[root@localhost neraka]# /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.
***
* Updating MIME database in /usr/share/mime...
***
In which directory do you want to install the mime type icons?
[/usr/share/icons]
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)? [no] y
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]
I am using Mandriva 2006 Beta, but I can seem to find this folder, the only ones I can find are /usr/src/RPM/RPMS no /linux/include
Where could I find the C header files, to get this program to work!?!
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
"usr/src/linux" is a symlink to the kernel sources directory. If you don't have it, the kernel sources are not installed. Install the package called kernel sources. This is true for almost every linux distro. There are a few things you need to do with SuSE 9.x to get VMware 5.0 to work. The answer for SuSE is on VMware's forum, probably several times.
VMWare on Fedora 7, stuck here: /usr/src/linux/include
During a VMWare installation on Fedora 7 I was also stuck here:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
What I had to do was install kernel-devel:
yum install kernel-devel
Ensure you also have xinetd, gcc, gcc-c++:
yum install xinetd gcc gcc-c++
The next problem I encountered was that my kernel-devel did not match my running kernel (my running kernel was: 2.6.21-1.3194.fc7, while the devel/"kernel headers" was 2.6.22.9-91.fc7). I upgrade everything so that my kernel-devel would match my running kernel:
yum update
I restarted my Linux Fedora 7 server and I was able to run /usr/bin/vmware-config.pl with no problems.
Also worth noting, I was able to take a Windows 2003 virtual machine created in Windows XP and move it to my Fedora 7 computer. It runs much faster, consumes less resources (RAM & CPU), and swaps less often, if ever.
During a VMWare installation on Fedora 7 I was also stuck here:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
What I had to do was install kernel-devel:
yum install kernel-devel
Ensure you also have xinetd, gcc, gcc-c++:
yum install xinetd gcc gcc-c++
The next problem I encountered was that my kernel-devel did not match my running kernel (my running kernel was: 2.6.21-1.3194.fc7, while the devel/"kernel headers" was 2.6.22.9-91.fc7). I upgrade everything so that my kernel-devel would match my running kernel:
yum update
I restarted my Linux Fedora 7 server and I was able to run /usr/bin/vmware-config.pl with no problems.
Also worth noting, I was able to take a Windows 2003 virtual machine created in Windows XP and move it to my Fedora 7 computer. It runs much faster, consumes less resources (RAM & CPU), and swaps less often, if ever.
During a VMWare installation on Fedora 7 I was also stuck here:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
What I had to do was install kernel-devel:
yum install kernel-devel
Ensure you also have xinetd, gcc, gcc-c++:
yum install xinetd gcc gcc-c++
The next problem I encountered was that my kernel-devel did not match my running kernel (my running kernel was: 2.6.21-1.3194.fc7, while the devel/"kernel headers" was 2.6.22.9-91.fc7). I upgrade everything so that my kernel-devel would match my running kernel:
yum update
I restarted my Linux Fedora 7 server and I was able to run /usr/bin/vmware-config.pl with no problems.
Also worth noting, I was able to take a Windows 2003 virtual machine created in Windows XP and move it to my Fedora 7 computer. It runs much faster, consumes less resources (RAM & CPU), and swaps less often, if ever.
Just thought I would add my thanks as well.
I have just followed your recommendations to help me install Vmware Tools on Fedora 9 (Kernel Linux 2.6.25.3-18.fc9.x86_64) running under Vmware Workstation 6.0.3 build-80004. Worked brilliantly - Thanks!
I ran into this same issue installing VMware server 1.07 on SuSE Linux Enterprise Server 10 (SP2). I resolved it by installing the packages mentioned above: kernel-source, kernel-syms, gcc, gcc-c++, libgcc, & make (libgcc & make may have already been there, not sure).
I just wanted to post a HUGE THANK YOU for adding that to this post, it helped me with a problem I've been banging my head against the wall for an hour over!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.