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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-10-2003, 10:38 AM
|
#1
|
Member
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556
Rep:
|
VMWare being truly "special" and not installing. HELP!
VMWare is asking for my kernel source headers. I made sure I installed the kernel sources that came with my distribution (SUSE) since I have NOT compiled my own kernel. See the output below. The two paths entered are THE ONLY path where i have any kernel source. Can someone please help?
Thanx beforehand
Code:
Fallasteeni:~ # vmware-config.pl
Making sure VMware Workstation's services are stopped.
Stopping VMware services:
Virtual machine monitor done
Trying to find a suitable vmmon module for your running kernel.
None of VMware Workstation's pre-built vmmon modules 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] 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]
The directory of kernel headers (version 2.4.20-4GB) does not match your running
kernel (version 2.4.20-4GB-athlon). 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-2.4.20.SuSE/include
The directory of kernel headers (version 2.4.20-4GB) does not match your running
kernel (version 2.4.20-4GB-athlon). 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] /lib/modules/2.4.20-4GB-athlon/build/include
The directory of kernel headers (version 2.4.20-4GB) does not match your running
kernel (version 2.4.20-4GB-athlon). 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]
Last edited by shassouneh; 06-10-2003 at 10:40 AM.
|
|
|
06-11-2003, 06:24 PM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
You have kernel version 2.4.20-4GB-athlon running, so vmware, being picky, wants to find the kernel sources for only that version.
If you want to use the other kernel version, boot into that first then run the vmware install again.
You should have a softlink in /usr/src pointing to /usr/src/linux-2.4.20-4GB-athlon.
Inside that directory will be the links to /build/include
When vmware spits this back..."What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]"
it usually means it couldn't find the /usr/src/linux-2.4.20-4GB-athlon directory or the softlink.
Make sure they exist or make a softlink called /usr/src/linux pointing to the 2.4.20-4GB-athlon source files.
|
|
|
06-14-2003, 09:02 PM
|
#3
|
Member
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556
Original Poster
Rep:
|
nope
Please read above carefully. The ONLY version of the kernel I have is the one that came by default with SuSE. I installed that kernel's sources form the SuSE CDs using YaST. As I mentioned earlier, I provided vmware's setup wit the EXACT location to where source headrers are available and it still complained.
Thanx for the reply though.
|
|
|
06-15-2003, 11:44 AM
|
#4
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Hmmm
Last edited by peter_robb; 06-15-2003 at 11:47 AM.
|
|
|
06-29-2003, 11:13 AM
|
#5
|
LQ Newbie
Registered: Jun 2003
Location: Dallas, TX
Distribution: Redhat 9
Posts: 9
Rep:
|
I finally got the Vmware "C Header File" problem fixed. So everybody out there having the same problem, listen up. This was in RH9, by the way.
in /usr/src if there is not a /linux.2.4 or /linux.2.4.20-8 or something of that nature, then you MUST install the kernel development tools. This will install the kernel-source correctly. I tried just installing the kernel-source rpm, but it didnt work.
for you newbies, you can find the "add-remove applications" under system settings and run that. it's a nice graphical tool. scroll down and check the kernel development. fyi: you will need disk 2 and 3 if you are in RH9.
after you install that, head back to the /usr/src and you will see you a couple new folders. head into the /usr/src/linux.2.4.20-8/include and you will see all the good stuff that vmware is looking for, like the asm, net, and linux.
so when it asks, where are the c header files? [/usr/src/linux/include]
obviously that is not the right place, just type in the path correctly, and you will be rockin! hope that helps!
|
|
|
06-29-2003, 08:02 PM
|
#6
|
Member
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556
Original Poster
Rep:
|
I will try it as soon as I boot back. Thanx for the tip.
|
|
|
07-16-2003, 03:09 PM
|
#7
|
LQ Newbie
Registered: Jul 2003
Location: South Bend, IN, USA
Posts: 3
Rep:
|
BeXplosive,
While I definitely appreciate the help, unfortunately I'm not sure how that applies to the problem shassouneh and I are experiencing? To give you the benefit of the doubt - as all help is appreciated and I can almost guarantee that you know far more about this than I do - I went ahead and tried following your suggestion.
Here is what I ran into:
Quote:
in /usr/src if there is not a /linux.2.4 or /linux.2.4.20-8 or something of that nature, then you MUST install the kernel development tools. This will install the kernel-source correctly. I tried just installing the kernel-source rpm, but it didnt work.
|
I already have the "normal" SuSE kernel's source in /usr/src. The actual path to it (on my system is) /usr/src/linux-2.4.20.SuSE. This, however, does me no good as it's not the compiled kernel I'm currently using (according to VMware, at least).
Quote:
for you newbies, you can find the "add-remove applications" under system settings and run that. it's a nice graphical tool. scroll down and check the kernel development. fyi: you will need disk 2 and 3 if you are in RH9.
|
This doesn't appear to apply in my and shassouneh's situations. Neither he nor I are using Red Hat and I'm not quite sure where to look in YAST for "kernel development". Using YAST's "Install and Remove Software" tool, the installed almost everything I could find regarding development but that didn't seem to be what I was hoping to accomplish and VMware had the same problem when it came to finding the correct source code after.
So, to sum all of this up, does anyone know where I can find SuSE's source code to the kernel with the Athlon optimizations? I found a host of other kernel sources to download but none were the ones I'm using. If I can download the source to the kernel with the Athlon customizations, this will solve our problem (I think, at least).
|
|
|
07-16-2003, 03:33 PM
|
#8
|
LQ Newbie
Registered: Jul 2003
Location: South Bend, IN, USA
Posts: 3
Rep:
|
I can't say I actually recommend this... but... it seemed to resolve the problem and VMware did, in fact, start and it appeared to operate normally.
What I did was really simple and, possibly, dumb but it worked...
I went to the following path and found the "version.h" file:
/usr/src/linux-2.4.20.SuSE/include/linux
My file read as...
Code:
#define UTS_RELEASE "2.4.20-4GB"
#define LINUX_VERSION_CODE 132116
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
The first line is the key.
Change...
Code:
#define UTS_RELEASE "2.4.20-4GB"
to...
Code:
#define UTS_RELEASE "2.4.20-4GB-athlon"
Then, save the file and allow VMware to use the default path for the source code and it should work as it did on mine.
DISCLAIMER:
I have not yet had the chance to actually install anything inside a VM yet. However, the vmware-config.pl script did run successfully so, if you're first to try it, please post the results for others to know?
If my suggestion does not ultimately resolve our problems or causes another and we have to return to try something else, my question regarding where to download the "2.4.20-4GB-athlon" kernel source still stands. 
Last edited by jluckett; 07-16-2003 at 03:49 PM.
|
|
|
07-17-2003, 04:43 PM
|
#9
|
LQ Newbie
Registered: Jul 2003
Posts: 1
Rep:
|
It worked fer me!
Thank you bexplosive
Worked for me... Vmware config defaulted to the right dir...
cheers 
|
|
|
All times are GMT -5. The time now is 07:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|