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 04-22-2008, 05:58 PM   #1
powergrip
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Rep: Reputation: 0
Question Trying to install, keep getting same problem


First and foremost. I am a complete linux noob so I really apologize if this is a stupid question. Having said that here we go.

I'm running Fedora Core 8 in VMware and I am trying to install some applications. At first it told me to install GCC. After following some ridiculous guides I finally found out that you can install it by typing in yum install gcc. So I installed it and everything was good. Until I tried to reinstall the app that was telling me to install GCC. Now I get the message...
Quote:
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [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 path "/usr/src/linux/include" is not an existing directory.
I take it that /usr/src/linux/include is not the "directory of C header files that match your running kernel?" Can some one tell me what is? Thanks!

Last edited by powergrip; 04-22-2008 at 06:01 PM.
 
Old 04-22-2008, 06:12 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Most distributions don't come with the header files installed. You need to find out what kernel you're running (uname -a) and then use yum to install the kernel-headers package. I don't use Fedora, so I'm not exactly sure what the package name is.
 
Old 04-22-2008, 06:39 PM   #3
powergrip
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Well I did the uname -a and I got

Quote:
Linux localhost.localdomain 2.6.24.4-64.fc8 #1 SMP Sat Mar 29 09:54:46 EDT 2008 i686 i686 i386 GNU/Linux
So I downloaded "kernel-2.6.24.4-64.fc8.src.rpm" and tried the following...

Quote:

[root@localhost src]# yum install kernel-2.6.24.4-64.fc8.src.rpm
Setting up Install Process
Parsing package install arguments
Examining kernel-2.6.24.4-64.fc8.src.rpm: kernel - 2.6.24.4-64.fc8.ppc
kernel-2.6.24.4-64.fc8.src.rpm: does not update installed package.
kernel-2.6.24.4-64.fc8.src.rpm: does not update installed package.
Nothing to do
[root@localhost src]#
Not sure if I used "yum" correctly as I am unsure how to use it but it seems to have ran. With no luck that is. Do you see anything I might be doing wrong?
 
Old 04-22-2008, 06:50 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
It almost seems like you already have the kernel source installed. What does your /usr/src/ directory look like? Is there a folder for 2.6.24 source? Is there a link from /usr/src/linux to /usr/src/linux-2.6.24 (or whatever the source directory is)?
 
Old 04-22-2008, 07:38 PM   #5
powergrip
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Well I extracted kernel-2.6.24.4-64.fc8.src.rpm using "rpm -ivh" command and it dumped a whole bunch of stuff in the /usr/src/redhat/SOURCES directory but when I try pointing to it for the install I get

Quote:
The path "/usr/src/redhat/SOURCES" is an existing directory, but it does not
contain a "linux" subdirectory as expected.
Other then the redhat directory that was just made there is nothing else in there.
 
Old 04-22-2008, 07:47 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
You can just create a symbolic link to that directory. Try ln -s /usr/src/redhat/SOURCES /usr/src/linux
 
Old 04-22-2008, 07:55 PM   #7
marquardl
Member
 
Registered: Apr 2008
Posts: 100

Rep: Reputation: 15
kernel-devel

This is a common problem with VMware.

Install the kernel-devel package like:
# yum -y kernel-devel

It will install everything what GCC is looking for, yum will make sure to install the correct version.

Check also the vmware update modules from http://platan.vc.cvut.cz/ftp/pub/vmware/ if you run into other problems when compiling the vmmon modules.

Server issues

Last edited by marquardl; 05-01-2008 at 05:06 AM.
 
Old 04-23-2008, 12:36 PM   #8
powergrip
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by marquardl View Post
This is a common problem with VMware.

Install the kernel-devel package like:
# yum -y kernel-devel

It will install everything what GCC is looking for, yum will make sure to install the correct version.

Check also the vmware update modules from http://platan.vc.cvut.cz/ftp/pub/vmware/ if you run into other problems when compiling the vmmon modules.

Bye,
M
Did you mean...

"# yum -y install kernel-devel"

Cuz I think that worked but I'm not sure if it will give me the same result though it looks like it will.
 
  


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
Install problem escalated to graphics problem Fice Linux - Software 1 01-04-2008 02:07 AM
Slack 11 install problem (cd install asks for /dev/fd0) cygnus-x1 Slackware 1 10-16-2006 11:30 AM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 07:10 AM
Slack 10.1 Install Problem(During Package Install) terdbird Slackware - Installation 2 04-22-2005 03:18 PM
dhcp problem in Debian netinst install..Help !! install. copter Linux - Networking 11 06-30-2004 02:14 PM


All times are GMT -5. The time now is 07:10 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