Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today!
Try Our New Product Showcase!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Mandriva Linux Help > What is the location of the directory of C header files that

Forgot Password?
 Mandriva Linux Help   For help and discussion about Mandriva (formally Mandrake) Linux.

Site Navigation
Linux Forums
Linux Articles
Product Showcase
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Free Publications




Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 02-05-2005   #1 (permalink)
Just Joined!
 
Join Date: Feb 2005
Posts: 3
Send a message via MSN to SimonTheMime
What is the location of the directory of C header files that

Code:
What is the location of the directory of C header files that match your running
kernel?
What is it on Mandrake?

Code:
The path "/usr/src/linux/include" is not an existing directory.
/usr/src/linux/include doesn't work. Help me out.

Thanks in advance,
Simon
SimonTheMime is offline  



Old 02-06-2005   #2 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
C header files are found in:
Code:
/usr/include
__________________
the lost art of found sound
lakerdonald is offline  
Old 02-10-2005   #3 (permalink)
Linux Newbie
 
Join Date: Apr 2004
Posts: 173
Send a message via AIM to tristanlee85
I tried that in Mandrake 10 and it says that those header files don't match my running Kernel. What other directory would it be?
tristanlee85 is offline  
Old 02-10-2005   #4 (permalink)
Linux Guru
 
Join Date: Mar 2003
Location: Wisconsin
Posts: 1,908
Send a message via Yahoo to jeremy1701
It's

/usr/src/{uname -r}/include

where uname -r is the output of uname -r.

If you don't have that directory, then you don't have kernel source installed.

Jeremy
__________________
Registered Linux user #346571
"All The Dude ever wanted was his rug back" - The Dude
jeremy1701 is offline  
Old 02-10-2005   #5 (permalink)
Linux Newbie
 
Join Date: Apr 2004
Posts: 173
Send a message via AIM to tristanlee85
Well, I installed kernel-source-2.6.3-7mdk.i586.rpm. Hopefully that will fix the problem?
tristanlee85 is offline  
Old 02-10-2005   #6 (permalink)
Linux Newbie
 
Join Date: Apr 2004
Posts: 173
Send a message via AIM to tristanlee85
Nevermind. It did fix the problem. i didn't have to manually enter the location either.
tristanlee85 is offline  
Old 05-22-2006   #7 (permalink)
Just Joined!
 
Join Date: May 2006
Posts: 3
STOP AND READ if you are about ready to give up on core 5 and vmware 5

Quote:
Originally Posted by SimonTheMime
Code:
What is the location of the directory of C header files that match your running
kernel?
What is it on Mandrake?

Code:
The path "/usr/src/linux/include" is not an existing directory.
/usr/src/linux/include doesn't work. Help me out.

Thanks in advance,
Simon
I made the mistake to upgrade from core 3 to core 5 and I too spent hours hours messing about with kernel-2.6.15-1.2054_FC5, kernel-2.6.16-1.2111_FC5, kernel-smp-2.6.16-1.2111_FC5 and etkernel-devel-2.6.16-1.2111_FC5 etc because I was thinking down the line that the C header files must be missing or for the wrong kernel, It resolved to be a more simple problem of how the VMware script looks for the header files, so the following is the easy steps I have taken to resolve my problem.

1) check your running kernel by typing "uname -r"
[root@alexs ~]# uname -r
2.6.16-1.2111_FC5smp
[root@alexs ~]#

2) check that you have the devel version of your kernel (you can see below that I had some kernel fun) as you can see in step 1 I am running 2.6.16-1.2111_FC5smp so I have kernel-smp-2.6.16-1.2111_FC5 and kernel-smp-devel-2.6.16-1.2111_FC5 installed.
You do not need this kernel you can use the one you have just make sure you have the headers and the easy way to find the headers is to use the devel kernel.

[root@alexs ~]# rpm -qa | grep kernel
kernel-smp-2.6.16-1.2111_FC5
kernel-smp-devel-2.6.15-1.2054_FC5
kernel-smp-2.6.15-1.2054_FC5
kernel-smp-devel-2.6.16-1.2111_FC5
[root@alexs ~]#

3) This is the step I wish I had know about 3 hours ago, visit my dev server and download vmware-any-any-update101.tar.gz (http://inoc-dev.viatel.net/vmware-an...date101.tar.gz)

4) As root "su -" unzip the file "gunzip vmware-any-any-update101.tar.gz" then un-tar the file "tar -xvf vmware-any-any-update101.tar" and then "cd vmware-any-any-update101" and run the script "./runme.pl"

Hope this helps


Alex
a9503128 is offline  
Old 06-02-2006   #8 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 4
how to for those devel package?

Hi,
I am trying to install Vmware tools and it needs source of the kernel.. I downloaded but it doesnt' have any version.h file.. I guess.. I need to do something else before this..

My
rpm -qa | grep kernel
kernel-smp-2.6.15-1.2054_FC5
kernel-smp-2.6.16-1.2122_FC5

So no devel thing there.. I can see source in /usr/include but got an error message

The directory of kernel headers (version 2.4.20) does not match your running
kernel (version 2.6.16-1.2122_FC5smp). Even if the module were to compile
successfully, it would not load into the running kernel.


kindly let me know what can I do to get that devel thing..

my
uname -r
2.6.16-1.2122_FC5smp

Kindly let me know if you know any solution to this problem.
Thanks.


Quote:
Originally Posted by a9503128
I made the mistake to upgrade from core 3 to core 5 and I too spent hours hours messing about with kernel-2.6.15-1.2054_FC5, kernel-2.6.16-1.2111_FC5, kernel-smp-2.6.16-1.2111_FC5 and etkernel-devel-2.6.16-1.2111_FC5 etc because I was thinking down the line that the C header files must be missing or for the wrong kernel, It resolved to be a more simple problem of how the VMware script looks for the header files, so the following is the easy steps I have taken to resolve my problem.

1) check your running kernel by typing "uname -r"
[root@alexs ~]# uname -r
2.6.16-1.2111_FC5smp
[root@alexs ~]#

2) check that you have the devel version of your kernel (you can see below that I had some kernel fun) as you can see in step 1 I am running 2.6.16-1.2111_FC5smp so I have kernel-smp-2.6.16-1.2111_FC5 and kernel-smp-devel-2.6.16-1.2111_FC5 installed.
You do not need this kernel you can use the one you have just make sure you have the headers and the easy way to find the headers is to use the devel kernel.

[root@alexs ~]# rpm -qa | grep kernel
kernel-smp-2.6.16-1.2111_FC5
kernel-smp-devel-2.6.15-1.2054_FC5
kernel-smp-2.6.15-1.2054_FC5
kernel-smp-devel-2.6.16-1.2111_FC5
[root@alexs ~]#

3) This is the step I wish I had know about 3 hours ago, visit my dev server and download vmware-any-any-update101.tar.gz (http://inoc-dev.viatel.net/vmware-an...date101.tar.gz)

4) As root "su -" unzip the file "gunzip vmware-any-any-update101.tar.gz" then un-tar the file "tar -xvf vmware-any-any-update101.tar" and then "cd vmware-any-any-update101" and run the script "./runme.pl"

Hope this helps


Alex
vsood2 is offline  
Old 06-03-2006   #9 (permalink)
Just Joined!
 
Join Date: May 2006
Posts: 3
FC5 and VMware

Hi "vsood2"

When you say "am trying to install Vmware tools" does this mean you have VMWare installed and running?

Lets say you do not; what distro are you running Redhat, Fedora, Gentoo, etc?
Did you download the vmware-any-any-update101.tar.gz file and run the update?

yours



Alexander
a9503128 is offline  
Old 06-05-2006   #10 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 4
I have Vmware Workstartion 5.5 running very well. I have Fedora Core 5 running.

I did not download vmware-any-any-update101.tar.gz or do anything with it becuase .. (if i m not mistaken).. I need to have "kernel devel" thing installed first.
Kindly let me know if I m wrong..

Sorry for replying late.. forgot to subscribe to this thread.



Quote:
Originally Posted by a9503128
Hi "vsood2"

When you say "am trying to install Vmware tools" does this mean you have VMWare installed and running?

Lets say you do not; what distro are you running Redhat, Fedora, Gentoo, etc?
Did you download the vmware-any-any-update101.tar.gz file and run the update?

yours



Alexander
vsood2 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Implementing Detailed User-Level Auditing of UNIX & Linux Systems
Enhance regulatory compliance and troubleshooting through detailed auditing, logging and real-time monitoring of UNIX/Linux user activity.
subscribe
Linux from Scratch - Receive Your Complimentary eBook NOW!
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.
subscribe
A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)
Getting Started with Ubuntu 10.04 (Lucid Lynx) is a comprehensive beginners guide for the Ubuntu operating system; it features comprehensive guides, How Tos and information on anything you need to know after first installing Ubuntu.
subscribe
The Incredible Guide to NEW Ubuntu (Karmic Koala)
There are a lot of people still stuck with Windows because it's the ‘easier alternative'. Linux is both cheaper and more versatile than Microsoft's operating system, but the learning curve has frightened off many people.
subscribe
The GNU/Linux Advanced Administration
The GNU/Linux systems have reached an important level of maturity, allowing to integrate them in almost any kind of work environment, from a desktop PC to the sever facilities of a big company.
subscribe
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe



All times are GMT. The time now is 01:38 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1