LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 04: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, 05: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 05:05 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Linux headers :

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

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

..
 
Old 01-30-2011, 05: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, 05: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, 05:43 AM   #6
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 82

Rep: Reputation: 20
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, 01: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, 02:07 PM   #8
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 82

Rep: Reputation: 20
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, 06: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 11:51 PM.
 
Old 01-31-2011, 03:50 AM   #10
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 82

Rep: Reputation: 20
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, 12:53 PM   #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, 01:05 PM   #12
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 82

Rep: Reputation: 20
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, 01:15 PM   #13
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

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, 02:33 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
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, 03:20 PM   #15
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 82

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


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


All times are GMT -5. The time now is 12:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration