LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-30-2011, 03:50 AM   #1
neveser
LQ Newbie
 
Registered: Jan 2011
Distribution: Mint (Julia)
Posts: 17

Rep: Reputation: 0
location of c header files


I'm trying to install vmware tools in mint.

All goes well until I get to this -

What is the location of the directory of C header files that match your running kernel? [usr/src/linux/include]

When installing the vmware tools it says to just hit enter and the default will be used.

Hitting enter just keeps giving me the error message-
The path "usr/src/linux/include" is not an existing directory.

What does this thing want from me?..?..???.?
 
Old 01-30-2011, 04:01 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Depends if you have the kernel-headers package installed (check with dpkg -l 'linux-headers*). If you don't have them installed then install them using apt-get for example but be sure to get the ones for your kernel.

If I'm not mistaking the header files can be found either in /usr/src. There's a link to the running kernel header files named /usr/src/linux, in my installation it points to the header files for my running kernel linux-headers-2.6.37-0.dmz.4-liquorix-amd64. So if you put /usr/src/linux as answer it should be good.

Kind regards,

Eric
 
Old 01-30-2011, 04:05 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Linux headers :

sudo apt-get install linux-headers-`uname -r`

( Or find the package that fits your kernel in 'Synaptic'.)

..
 
Old 01-30-2011, 04:07 AM   #4
neveser
LQ Newbie
 
Registered: Jan 2011
Distribution: Mint (Julia)
Posts: 17

Original Poster
Rep: Reputation: 0
It says that /usr/src/linux is not an existing directory.
 
Old 01-30-2011, 04:09 AM   #5
neveser
LQ Newbie
 
Registered: Jan 2011
Distribution: Mint (Julia)
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Linux headers :

sudo apt-get install linux-headers-`uname -r`

( Or find the package that fits your kernel in 'Synaptic'.)

..
It says that virtual packages like 'linux headers' can't be removed
E: unable to locate package myname-r
 
Old 01-30-2011, 04:43 AM   #6
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 89

Rep: Reputation: 22
Hi,

Try to search for something like /usr/src/linux-headers....../include .

If there is no such directory you have to install linux-headers for the kernel version installed on your computer ( uname -r ) .
If you are not running a custom compiled kernel you should be able to find kernel headers in mint repositories.

You also can try to replace `uname -r` with output of it in apt-get command.
Ex:
Quote:
$ uname -r
2.6.32-25-generic
$ sudo apt-get install linux-headers-2.6.32-25-generic
 
Old 01-30-2011, 12:56 PM   #7
neveser
LQ Newbie
 
Registered: Jan 2011
Distribution: Mint (Julia)
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by goodhombre View Post
Hi,

Try to search for something like /usr/src/linux-headers....../include .

If there is no such directory you have to install linux-headers for the kernel version installed on your computer ( uname -r ) .
If you are not running a custom compiled kernel you should be able to find kernel headers in mint repositories.

You also can try to replace `uname -r` with output of it in apt-get command.
Ex:
OK - I successfully did that. I still don't know where this directory is (location of C header files)
 
Old 01-30-2011, 01:07 PM   #8
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 89

Rep: Reputation: 22
For the example I gave you before my headers are located in :

Quote:
/usr/src/linux-headers-2.6.32-25-generic/include/
You also can check where headers have been installed :

Quote:
$ dpkg -L linux-headers-2.6.32-25-generic
.................................
/usr/src/linux-headers-2.6.32-25-generic/include/config/x86
/usr/src/linux-headers-2.6.32-25-generic/include/config/x86/debugctlmsr.h
/usr/src/linux-headers-2.6.32-25-generic/include/config/x86/cmpxchg64.h
/usr/src/linux-headers-2.6.32-25-generic/include/config/x86/cmpxchg.h
/usr/src/linux-headers-2.6.32-25-generic/include/config/x86/bootparam
/usr/src/linux-headers-2.6.32-25-generic/include/config/x86/bootparam/memory
/usr/src/linux-headers-2.6.32-25-generic/include/config/x86/bootparam/memory/corruption
/usr/src/linux-headers-2.6.32-25-generic/include/config/x86/bootparam/memory/corruption/check.h
...................................
 
Old 01-30-2011, 05:03 PM   #9
neveser
LQ Newbie
 
Registered: Jan 2011
Distribution: Mint (Julia)
Posts: 17

Original Poster
Rep: Reputation: 0
The output of that dpkg command was a massive list of directories and files.
What file or folder am I looking for? Something that says config/x86?

EDIT: I think I've found an easier way through the software manager.

Last edited by neveser; 01-30-2011 at 10:51 PM.
 
Old 01-31-2011, 02:50 AM   #10
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 89

Rep: Reputation: 22
Quote:
Originally Posted by neveser View Post
The output of that dpkg command was a massive list of directories and files.
What file or folder am I looking for? Something that says config/x86?
I think is is enough to point it to "include" directory.

Quote:
/usr/src/linux-headers-........../include/
 
1 members found this post helpful.
Old 01-31-2011, 11:53 AM   #11
neveser
LQ Newbie
 
Registered: Jan 2011
Distribution: Mint (Julia)
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by goodhombre View Post
I think is is enough to point it to "include" directory.
When I tried that directory, it gave me a new error.
Something to the effect of no linux subdirectory as expected.

I did discover that there was a software package called 'open-vm-tools'
You can just open the Software manager and search for it.
Worked perfectly.

After doing this I made a new, not so good, discovery. You cannot enable desktop effects through VMware on a linux VM.
I'm using version 6.5, I still don't think its possible in the newer version of VMware Workstation.

Now I'm setting up another vm in VBox. It's free (free is good!) and its supposed to work better than vmware for linux.
I guess I'll soon find out for myself.
 
Old 01-31-2011, 12:05 PM   #12
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 89

Rep: Reputation: 22
Hi,

As I know VBox doesn't support 64bit architecture.

Did you try to install VMware Player 3.1 ( http://downloads.vmware.com/d/detail...Rld2RiZGplKg== ) ?
 
Old 01-31-2011, 12:15 PM   #13
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
As I know VBox doesn't support 64bit architecture.
Is that what it means when it says 32-bit legacy?
I have 64-bit machines in my VB they seem to work well.
 
Old 01-31-2011, 01:33 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
As I know VBox doesn't support 64bit architecture.
Lots of 64bits packages here
http://www.virtualbox.org/wiki/Linux_Downloads
 
Old 01-31-2011, 02:20 PM   #15
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 89

Rep: Reputation: 22
Quote:
Originally Posted by knudfl View Post
Sorry, I meant 64bit guest OS-es .
 
  


Reply



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
[SOLVED] Codeblocks plugins and header files location konzo Programming 3 01-29-2010 11:26 PM
Location of C Header Files in Fedora Core 5 wadedesk Linux - Software 3 05-11-2006 01:12 AM
c header files location 2.6.5 kernel? Rhatlinux Linux - Software 1 09-11-2004 03:39 PM
Location of header files running alongside kernel- SuSE 9.0 MoghNX01 Linux - Software 0 03-21-2004 06:00 PM
location of dir of C header files? VMWARE install.. s7nner Linux - Newbie 3 09-07-2003 11:32 PM

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

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