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.
ok running Mandrake 10.0 official i installed the rpm package then opend a konsole and loaded the vmware config script
Code:
[root@s ***-*-**-*** xvium]# /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.
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] 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]
now heres where im stuck .. i navigated to /usr/src in konqueror and the only dir in there is /usr/src/rpm and all of the dirs under rpm ar empty, and no include folder.
so i navigated back up a few dirs and noticed a dir "/usr/include/" it sparked some interest
its a folder full of header files as expected .. so i loaded the vmware config script again and when prompted i enterd the following
Code:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]/usr/include
and then got the following
Code:
The header files in /usr/include are generally for C libraries, not for the
running kernel. If you do not have kernel header files in your /usr/src
directory, you probably do not have the kernel-source package installed. Are you
sure that /usr/include contains the header files associated with your running
kernel? [no]
for the hell of it i typed yes and got this
Code:
The directory of kernel headers (version 2.6.0) does not match your running
kernel (version 2.6.3-7mdk-p3-smp-64GB). 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]
can someone give me a hand ?
also i am available on msn if that works for you Xvium@hotmail.com
Well, as the message said, "You probably don't have the kernal sources installed." So, got the the Mandrake site, look for the "sources" and install them.
(I don't use Mandrake, so I can't be more specific. Probably something like
Ok macemoneta i downladed the kernel from that site and installed the rpm, thx. Now should i leave linux-2.6.3-q7.tar.bz2 and linux-2.6.3.tar.bz2 in the sources dir intact or should i extract them? and where?
You would put the kernel source into /usr/src ... remember, the VMWare install will prompt you for the location of your kernel source, so you can actually put them anywhere, but /usr/src is the standard place. You really need to have the same source as your running kernel (see uname -a to get the version info) or things might not work correctly. There should have been a kernel-source RPM or the equivalent on your Mandrake CDs.
ok i have the source rpm for my kernel, i installed it,it dropped a coupple tar files in the /usr/rpm/sources dir. is the source located withing the tarballs? extract the two tarballs to /usr/rpm/sources ?
-edit-- okay i extracted the tars to /usr/src/linux then i went to the vmware config and entered
/usr/src/linux/include as the dir with the c header files and got this message
Code:
The path "/usr/src/linux/include" is an existing directory, but it does not
contain at least one of these directories "linux", "asm", "net" as expected.
in accuality the folder does contain the directorys "linux" and "net" but not asm
mind you there are 22 directorys that start with the letters asm E.g. "asm-alpha, asm-arm, asm-generic"
I don't know where you are getting your source tarballs/rpms from, but if you pick up one of the official mandake source RPMs it will do everything for you, and do it in the fashion that makes mandrake happy.
Specifically, since you have kernel 2.6.3-7mdk-p3-smp-64GB, mandrake wants the kernel sources in /usr/src/inux-2.6.3-7mdk-p3-smp-64GB, with a symlink named /usr/src/linux that points to that directory.
Within that directory, you should have all of these entries:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.