[opensuse] vmware and kernel version problem
Hi, this is my first message to the list. I am a new openSUSE user (openSUSE_10.2) and I am having trouble installing vmware. After installation it requires me to run a config script in which it tries to compile some modules. But it fails because, the kernel headers I have installed say my kernel version is 2.6.18 : linux/version.h #define UTS_RELEASE "2.6.18" #define LINUX_VERSION_CODE 132626 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) whereas uname -r returns: donato@hansolo:/usr/include> uname -r 2.6.18.2-34-default should I change linux/version.h or is there another approach to solve this problem? this is the exact output from the configuration script: What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /usr/include 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] yes The directory of kernel headers (version 2.6.18) does not match your running kernel (version 2.6.18.2-34-default). Even if the module were to compile successfully, it would not load into the running kernel. Thanks for the time! -- Donato Azevedo -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Donato, The problem you have is because you do not have the kernel sources for the kernel you have install so: Go to yast or smart and install the kernel-source for the kernel you have. Most of the time this is all what you need. If that does not do it then after installing the kernel-source # cd /usr/src/linux and run
make mrproper ; make cloneconfig ; make prepare-all
Because of security reasons they have remove usbfs from the kernel IF YOU NEED IT for some of the usb function like sync with the Palm etc you will have to enable it in the kernel. This is not need it for a usb printer or a usb keyboard for example if you use "make menuconfig" for kernel configuration GOTO: -> Device Drivers//USB support/USB device filesystem and selected it! Ciao -=terry(Denver)=- On Mon, 2007-02-05 at 00:51 -0200, Donato Azevedo wrote:
Hi, this is my first message to the list. I am a new openSUSE user (openSUSE_10.2) and I am having trouble installing vmware. After installation it requires me to run a config script in which it tries to compile some modules. But it fails because, the kernel headers I have installed say my kernel version is 2.6.18 : linux/version.h #define UTS_RELEASE "2.6.18" #define LINUX_VERSION_CODE 132626 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
whereas uname -r returns: donato@hansolo:/usr/include> uname -r 2.6.18.2-34-default
should I change linux/version.h or is there another approach to solve this problem?
this is the exact output from the configuration script:
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /usr/include
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] yes
The directory of kernel headers (version 2.6.18) does not match your running kernel (version 2.6.18.2-34-default). Even if the module were to compile successfully, it would not load into the running kernel.
Thanks for the time! -- Donato Azevedo
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 04 February 2007 20:51, Donato Azevedo wrote:
Hi, this is my first message to the list. I am a new openSUSE user (openSUSE_10.2) and I am having trouble installing vmware. <snip>
should I change linux/version.h or is there another approach to solve this problem?
There is no need to change linux/version.h as you can see further below.
this is the exact output from the configuration script:
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /usr/include
The default in brackets [/usr/src/linux/include] is right answer.
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] yes
Here is again default [no] right answer.
The directory of kernel headers (version 2.6.18) does not match your running kernel (version 2.6.18.2-34-default). Even if the module were to compile successfully, it would not load into the running kernel.
Thanks for the time! --
Hi Donato, You have to install kernel sources using YaST, and than try vmware installation again. -- Regards, Rajko. http://en.opensuse.org/Portal -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2/5/07, Rajko M. <rmatov101@charter.net> wrote:
Hi Donato,
You have to install kernel sources using YaST, and than try vmware installation again.
I just installed it. Now I get this error message: 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 @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18.2-34-default). Even if the module were to compile successfully, it would not load into the running kernel. Which is weird.. looks as if It is not able to parse the contents of the include file... strange... ps: Sorry if I mailed it twice to Rajko. Misconfigured Reply bitton =) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 04 February 2007, Donato Azevedo wrote:
On 2/5/07, Rajko M. <rmatov101@charter.net> wrote:
Hi Donato,
You have to install kernel sources using YaST, and than try vmware installation again.
I just installed it. Now I get this error message:
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 @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18.2-34-default). Even if the module were to compile successfully, it would not load into the running kernel.
Which is weird.. looks as if It is not able to parse the contents of the include file... strange...
ps: Sorry if I mailed it twice to Rajko. Misconfigured Reply bitton =)
Go back into yast ans install the kernel-syms package, then do an on-line update to be sure that all your packages are up to date. (the kernel source you installed may or may not match the current kernel, but an online update will fix that. -- _____________________________________ John Andersen
On 2/5/07, John Andersen <jsa@pen.homeip.net> wrote:
On Sunday 04 February 2007, Donato Azevedo wrote:
On 2/5/07, Rajko M. <rmatov101@charter.net> wrote:
Hi Donato,
You have to install kernel sources using YaST, and than try vmware installation again.
I just installed it. Now I get this error message:
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 @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18.2-34-default). Even if the module were to compile successfully, it would not load into the running kernel.
Which is weird.. looks as if It is not able to parse the contents of the include file... strange...
ps: Sorry if I mailed it twice to Rajko. Misconfigured Reply bitton =)
Go back into yast ans install the kernel-syms package, then do an on-line update to be sure that all your packages are up to date. (the kernel source you installed may or may not match the current kernel, but an online update will fix that.
Hi again guys. I managed to solve the problem after a bit of searching on the web. Apart from installing all the necessary stuff (kernel-source, syms, and make) this is what I did: First I edited the contents of /usr/src/linux/include/linux/version.h adding: donato@hansolo:~> echo "#define UTS_RELEASE \""`uname -r`\" #define UTS_RELEASE "2.6.18.2-34-default" Then I entered /usr/src/linux and did: # make cloneconfig # make modules_prepare after that I followed the instructions on this web site: http://nileshbansal.blogspot.com/2006/05/vmware-workstation-on-suse-linux-10... after I had a problem with compilation errors voila, that was it. I dont know if all the steps were indeed necessary, but I am reproducing them as I did them... =)) thanks for everyone who eased me into Suse's newbie stuff (sorry about the english, i am brazilian =) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I hope some day people will realize that UTS_RELEASE is nowadays defined in the header utsrelease.h (and no longer in version.h) and that SUSE uses a build directory, i.e. generated header files like version.h are *not* in the source tree (/usr/src/linux/include/linux) but in the build directory (/usr/src/linux-obj/<arch>/<flavor>/include/linux). The link /lib/modules/`uname -r`/build should point to the build directory. Th. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Donato Azevedo
-
John Andersen
-
Rajko M.
-
Teruel de Campo MD
-
Thomas Hertweck