LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-15-2005, 05:22 AM   #1
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Rep: Reputation: 15
where are my "C header files"?


- I am installing vmware tools in suse linux 9.2
- It needed gcc.
- I went to YAST and installed gcc.
- Now it asks: "What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

When I hit return, it says "/usr/src/linux/include" is not an existing directory?

How do I find my "C header files"?

Thanks.
 
Old 03-15-2005, 05:57 AM   #2
RWallett
Member
 
Registered: Jan 2002
Location: Anchorage, AK
Distribution: Gentoo, Ubuntu and Slackware
Posts: 38

Rep: Reputation: 15
Chances are, your kernel is installed as /usr/src/linux-2.x.yy rather than /usr/src/linux/ . Try this:
locate include | grep linux | less

Your terminal will probably barf up a lot of results, thus the pipe to less in the example above

You could also try looking in the /usr/src directory to see what directories live there, too:
ls -l /usr/src | grep linux | grep "^d"

On my system, this returns:
$ls -l /usr/src | grep linux | grep "^d"
drwxr-xr-x 15 573 573 4096 Feb 21 04:38 linux-2.4.28
$

If I look in the linux-2.4.28 directory, I see an include directory there:
ls -l /usr/src/linux-2.4.28/
<...snip...>
drwxr-xr-x 29 573 573 4096 Feb 3 05:11 include
<...snip...>
 
Old 03-15-2005, 06:15 AM   #3
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Original Poster
Rep: Reputation: 15
when I did:
$ls -l /usr/src | grep linux | grep "^d"

it only found:
/usr/src/linux-2.6.8-24-obj

and typed that in during the vmtools installation but it said:
The path "/usr/src/linux-2.6.8-24-obj" is an existing directory, but it does not contain at least one of these directories "linux", "asm" "net" as expected.

In fact, it only contains "i386" which has a little tree of empty directories under it.

Is there any other place I can look for the C header files for the kernel?
(Yours didn't have "-obj" at the end, what does that mean?)

Thanks.
 
Old 03-15-2005, 06:34 AM   #4
RWallett
Member
 
Registered: Jan 2002
Location: Anchorage, AK
Distribution: Gentoo, Ubuntu and Slackware
Posts: 38

Rep: Reputation: 15
Quote:
Originally posted by learnfast
when I did:
$ls -l /usr/src | grep linux | grep "^d"

it only found:
/usr/src/linux-2.6.8-24-obj
Did you try:

locate include | grep linux | less

...and if so, did anything look promising there? Now that we know (or at least suspect) what kernel you are running, you could always try this, too:
locate include | grep "linux\-2.6.8"

Quote:
Originally posted by learnfast
(Yours didn't have "-obj" at the end, what does that mean?)
I'm not exactly sure what the -obj means; I would assume it's object code, but I don't know that. Does anyone more familiar with Suse know this (I'm a Slacker, and I've never seen this on my machines)?
 
Old 03-15-2005, 06:48 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,328

Rep: Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176
Does Suse install the source tree - and headers ???. Maybe it's an option like I discovered with RH9.
My only foray into Redhat/Fedora, I seem to recall they had to be installed specifically (i.e. manually).

And they didn't wind up in the expected /usr/src/linux symlink.
Only reason I found out was that I needed to build a module for my winmodem. What a welcome to Linux.
 
Old 03-15-2005, 10:38 AM   #6
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Original Poster
Rep: Reputation: 15
- So, I used YAST to install the KERNEL SOURCES which solved my immediate problem.

- So it found its "C header files" and began building the "vmhgfs" module which I assume is the compiled vmware tools specifically for Suse Linux 9.2

- After 8 seconds, however, it reported "Unable to build the vmhgfs module" which may not be that bad, however, since it also said, "The filesystem driver (vmhgfs module) is used only for the hsare folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature."

- However, it ended on a sour note with:

Detected XFree86 version 0.0.0
Problem extracting verion (sic) of XFree 4
Execution aborted.

Which doesn't sound good.

And indeed it wasn't good since when I rebooted the virtual machine, it eventually said, "Failed services in runlevel 5 (vmware-tools)" and "Skipped services in runlevel 5 (smbfs nfs)" and then offered me the text login prompt.

Once logged in, "init 5" takes me no where. Hence, I've been practically shut out of my GUI.

So, what I learned from this afternoon's project is:

WMware does not yet support Suse Linux 9.2.

Thanks for all your help, I learned a lot on that one.
 
  


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
VMware & "directory of C header files" pacranch Amigo 12 05-14-2005 04:39 PM
add "Artist" and "Album Title" to mp3 files powah Linux - Software 2 04-05-2005 04:04 AM
"Cannot find header source files" when trying to install Nvidia 6111 drivers naddad Linux - Newbie 3 08-31-2004 01:42 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-30-2004 12:18 AM
How do I get "Kernel Header" files so I can install nVidia drivers Stevetgn Linux - Newbie 4 01-14-2004 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:43 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
Open Source Consulting | Domain Registration