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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-15-2005, 05:22 AM
|
#1
|
Member
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70
Rep:
|
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.
|
|
|
03-15-2005, 05:57 AM
|
#2
|
Member
Registered: Jan 2002
Location: Anchorage, AK
Distribution: Gentoo, Ubuntu and Slackware
Posts: 38
Rep:
|
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...>
|
|
|
03-15-2005, 06:15 AM
|
#3
|
Member
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70
Original Poster
Rep:
|
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.
|
|
|
03-15-2005, 06:34 AM
|
#4
|
Member
Registered: Jan 2002
Location: Anchorage, AK
Distribution: Gentoo, Ubuntu and Slackware
Posts: 38
Rep:
|
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)?
|
|
|
03-15-2005, 06:48 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,328
|
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.
|
|
|
03-15-2005, 10:38 AM
|
#6
|
Member
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70
Original Poster
Rep:
|
- 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.
|
|
|
All times are GMT -5. The time now is 12:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|