C header files location

chris-n/jUll39koHNgV/OU4+dkA at public.gmane.org chris-n/jUll39koHNgV/OU4+dkA at public.gmane.org
Sat Dec 9 01:50:29 UTC 2006


Chris Aitken writes: 

> Lennart Sorensen wrote: 
> 
>> On Fri, Dec 08, 2006 at 02:56:26PM -0500, chris-n/jUll39koHNgV/OU4+dkA at public.gmane.org wrote:
>>   
>> 
>>> I am trying to install VMware from the original CD. Trying to run 
>>> vmware-config.pl I am getting:  
>>> 
>>> What is the location of the directory of C header files that match your 
>>> running
>>> kernel? [/usr/src/linux/include]  
>>> 
>>> I hit Enter to accept defult and get:  
>>> 
>>> The path "/usr/src/linux/include" is not an existing directory.  
>>> 
>>> I ran updatedb, then I adjusted the path to reflect directories, tried 
>>> that and got:  
>>> 
>>> The path "/usr/src/linux-2.6.5-1.358/include" is an existing directory, 
>>> but it
>>> does not contain at least one of these directories "linux", "asm", "net" 
>>> as
>>> expected.  
>>> 
>>> What am I doing wrong here?     
>>> 
>> 
>> What distribution are you running? 
>> 
>> On debian I do it this way: 
>> 
>> apt-get install linux-headers-`uname -r`
>> vmware-config.pl 
>> 
>> Use /usr/src/linux-headers-`uname -r`/include as the answer to vmware's
>> question.  Expand the `uname -r` yourself. 
>> 
>> Always worked for me.

yum install linux-headers- 'uname -r'
Setting up Install Process
Setting up repositories
updates-released          100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
http://mirror.netglobalis.net/pub/fedora/core/4/i386/os/repodata/repomd.xml: 
[Er
rno 4] IOError: HTTP Error 404: Date: Sat, 09 Dec 2006 01:37:27 GMT
Server: NOYB
Content-Length: 313
Connection: close
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
base                      100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 299 kB    00:02
updates-re: ################################################## 782/782
Added 782 new packages, deleted 0 old in 15.57 seconds
primary.xml.gz            100% |=========================| 1.2 MB    00:10
extras    : ################################################## 3988/3988
Added 3988 new packages, deleted 0 old in 58.06 seconds
primary.xml.gz            100% |=========================| 824 kB    00:06
base      : ################################################## 2772/2772
Added 2772 new packages, deleted 0 old in 36.80 seconds
Parsing package install arguments
No Match for argument: linux-headers-
No Match for argument: uname -r
Nothing to do
[root at localhost ~]# vmware-config.pl
Making sure VMware Workstation's services are stopped. 

Stopping VMware services:
  Virtual machine monitor                                 [  OK  ] 

Trying to find a suitable vmmon module for your running kernel. 

None of VMware Workstation's pre-built vmmon modules is suitable for your
running kernel.  Do you want this program to try to build the vmmon module 
for
your system (you need to have a C compiler installed on your system)? [yes] 
yes 

Using compiler "/usr/bin/gcc". Use environment variable CC to override. 

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

The path "/usr/src/linux-headers- 'uname -r'/include" is not an existing
directory. 

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

I don't think that entirely worked. 

Chris
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list