LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to install, keep getting same problem (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-install-keep-getting-same-problem-637131/)

powergrip 04-22-2008 04:58 PM

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!

pljvaldez 04-22-2008 05:12 PM

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.

powergrip 04-22-2008 05:39 PM

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?

pljvaldez 04-22-2008 05:50 PM

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)?

powergrip 04-22-2008 06:38 PM

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.

pljvaldez 04-22-2008 06:47 PM

You can just create a symbolic link to that directory. Try ln -s /usr/src/redhat/SOURCES /usr/src/linux

marquardl 04-22-2008 06:55 PM

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

powergrip 04-23-2008 11:36 AM

Quote:

Originally Posted by marquardl (Post 3129600)
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.


All times are GMT -5. The time now is 04:39 AM.