LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-18-2006, 10:53 AM   #1
vohra27
LQ Newbie
 
Registered: May 2006
Posts: 10

Rep: Reputation: 0
Unhappy upgrading kernel


hi i am really new to linux. I want to upgrade my Fedora core 5 kernel. Is this command right:

" yum install kernel-devel".

Actually i am having trouble installing vmware tools on my guest Fedora 5. It keeps asking me for the directory that has C header files that macth the kernel source.
Which i cant find.

After upgrading kernel i want to get the matching kernel source also. Is my approach right. If yes please tell me how to upgrade kernel and how to install the kernel source.

Thank you
Sharif vohra
 
Old 05-18-2006, 11:30 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Here's what you need:

yum -y update kernel kernel-devel

The 'kernel' package has the binary kernel files, and the 'kernel-devel' has the headers needed to build the VMWare module (or any kernel module). You only need the kernel source if you want to customize the kernel itself or apply a patch.
 
Old 05-18-2006, 02:04 PM   #3
vohra27
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for your reply. I will just try it. Becuase for now i did
"yum kernel-devel" which showed me 2.6.16.xxx but my uname - says 2.6.15.xxx (no idea y.
but as you said they are different. so my kernel is still 2.6.15 but kernel-devel is 2.6.16. (rite?)
i think i will upgrade using the command u gave me.
Thank you.
 
Old 05-18-2006, 02:18 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Yum is simply reporting the current level. In other words, what you have installed is older and will be upgraded if you ask yum to do that.
 
Old 05-19-2006, 02:41 PM   #5
vohra27
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
yes i upgraded my kernel and kernel devel. But i still cant confiure vmare tools. I think i am gonna give on this. It still keeps asking for the C header files. By defualt it looks in /usr/bin/linux. I also made it look in /lib/...nuild/include (than there is a linux subdirectory holding the .h files. Still no luck.
it says something abt vmhgfs module first before asking for C header files.
 
Old 05-19-2006, 02:54 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
The headers should be in the directory '/usr/src/kernels/2.6.16-1.2111_FC5/' for the current FC5 kernel. You can see this by issuing the command:

rpm -ql kernel-devel | head -n1

Also, have you applied the current vmware-any-any-update patch to VMWare?

Last edited by macemoneta; 05-19-2006 at 02:56 PM.
 
Old 05-20-2006, 02:34 PM   #7
vohra27
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
well. i installed fedora again (Fresh install).
The patch says i have to type in terminal( ./runme) but i get an error " Unable to open the installer database /etc/vmware/locations in read-mode.

Execution aborted.

I was in root mode when i did it. Also i have perl installed.

One more thing when i go to add/remove software. i get the error "unable to retrieve software information". Actually this time i installed so many extra packages also" Last time i didnt have many packages and add/remove program just ran fine. So i dont know if its a bug.

I ran the script ./runme before and after installing the vmware tools but before configuring the tools ofcourse.

Still I tried to configure the vmware tools. It asked for the C Header files. I used your command to find the path and just had to append "/include" at the end of the path. Thats because it looks for a linux sub directory which is in the include folder.

But i get this error now:
The kernel defined by this directory of header files does not have the same
address space size as your running kernel.
And asks for the header files again.
 
Old 05-20-2006, 02:37 PM   #8
vohra27
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I am using vmware 5.5. On one forum there was a post that said we dont need vmware any any update if we have vmware workstation 5.5.
 
Old 05-20-2006, 03:03 PM   #9
vohra27
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
ops. The ./runme update of vmware gives the error about "Unable to open the installer database /etc/vmware/locations in read-mode" But i dont see any vmware folder in etc directory.
 
Old 05-20-2006, 03:21 PM   #10
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Did you install VMware before running the patch (required)?
 
Old 05-21-2006, 06:45 AM   #11
vohra27
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
yes i got it working. thank you so much. Actually i m have to work on debian but th dvds are taking too long to download. In the mean time i m working onfedora and mandriva 2006.
we have yum in fedora linux. Is urpmi the same thing in mandriva. Becuase i want tp upfate the kernel , kernel-headers and kernel source in manriva. Sorry for asking too many basic questions.
 
Old 05-21-2006, 10:31 AM   #12
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
The documentation for urpmi is here. It performs essentially the same function as yum, however I think yum is much more user friendly.
 
Old 05-27-2006, 08:26 AM   #13
vohra27
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Hi again. Thanx for previous help. I have finally got debian running. I have same problem of c header files. i think i have the matching kernel header files but vmware doesnt seem to accept it.
I was wondering if i could install the latest kernel and headers for it. I used Yum and urpmi for redhat and mandrake. how do i do it in debian(apt -get install) reads cd rom rite or may be we can make it look for packages on some mirrors.
i think i can add some mirrors to source.list file.for e.g
deb http://ftp.at.debian.org/debian/dist...n/binary-i386/
or just
deb http://ftp.at.debian.org/debian/dists/sarge/
(not sure which of the 2 to use.
i checked my kernel version and did apt-get install kernel-headers-2.4.xx-x. which made a directory /usr/src/kernel-2.4.xx-x/include.
But i still cant run vmware tools.
Could you help me with this please.

Last edited by vohra27; 05-27-2006 at 08:40 AM.
 
Old 05-27-2006, 12:25 PM   #14
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
What happens when you run vmware-config.pl?
 
Old 05-27-2006, 05:30 PM   #15
vohra27
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
well it just tries to configure vmgfs and than asks for c header files. When i enter the kernel header files path, it says that it may compile but wont run in the running kernel (something like tht). and than asks for c header files again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
upgrading from kernel 2.4.21 to 2.4.28 xxsubz78x Linux - Newbie 12 05-15-2006 11:50 AM
about upgrading the kernel linuxmandrake Linux - Newbie 3 05-29-2005 11:14 PM
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 07:21 PM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 08:00 AM
Kernel Upgrading.... bfloeagle Linux - General 2 03-16-2001 08:29 PM


All times are GMT -5. The time now is 04:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration