LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-12-2006, 10:08 PM   #1
RoMan65
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Question Location of the directory of "C" header files


G'Day Folks,

I am attempting to install vmware on FC4. Unfortunately, I do not know where the directory of C header files resides. Can anyone help me? Thanks much in advance.

RoMan65
 
Old 01-12-2006, 11:06 PM   #2
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
do you got any error messages while installing vmware?
 
Old 01-13-2006, 02:00 AM   #3
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Try the commands:
whereis "file"
which "file"
slocate "file"
But they'll only find the file you're looking for if it's in one of the directories of $PATH, probably.

Using "find" to recursively search in all directories for a specific file on your disk is an option too,
but it will take a lot of time.

Headers from external libraries are usually stored in directories named "include", somewhere under /usr, /usr/local, ..., (depending on where the libraries where installed).

Standard (ANSI) C headers can be included from your $PATH probably, using the
#include <header>
syntax instead of
#include "header.h"
And by using the compiler's -l option (for instance for the math library, use "-lm" as compiler option).
 
Old 01-13-2006, 01:06 PM   #4
kevets
LQ Newbie
 
Registered: Dec 2005
Location: Northern Virginia
Distribution: Redhat, Fedora
Posts: 5

Rep: Reputation: 0
I too, am in the process of installing VMWare GSX server on one of my FC4 servers. I've been running into problems building the vmmon module. It seems to detect GCC OK (using compiler "/usr/bin/gcc") and it defaults to the C header files located in "/lib/modules/2.6.11-1.1369_FC4smp/build/include/". When it attempts to build the module, I get the following messages.

Is something wrong with the compiler I'm using? When I run gcc -v, it tells me I'm running gcc version 4.0.0 20050519.


Code:
Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmmon-onlyí
make -C /lib/modules/2.6.11-1.1369_FC4smp/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make1: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-smp-i686í CC [M] /tmp/vmware-config3/vmmon-only/linux/driver.o
/tmp/vmware-config3/vmmon-only/linux/driver.c:131: warning: initialization from incompatible pointer type
/tmp/vmware-config3/vmmon-only/linux/driver.c:135: warning: initialization from incompatible pointer type CC [M] 
/tmp/vmware-config3/vmmon-only/linux/hostif.o
In file included from /tmp/vmware-config3/vmmon-only/linux/hostif.c:61:
/tmp/vmware-config3/vmmon-only/./include/pgtbl.h: In function ‚PgtblVa2PTELocked‚:
/tmp/vmware-config3/vmmon-only/./include/pgtbl.h:81: error: request for member ‚pgd‚ in something not a structure or union
/tmp/vmware-config3/vmmon-only/linux/hostif.c: In function ‚HostIF_FreeLockedPages‚:
/tmp/vmware-config3/vmmon-only/linux/hostif.c:738: error: ‚struct page‚ has no member named ‚count‚
/tmp/vmware-config3/vmmon-only/linux/hostif.c:740: error: ‚struct page‚ has no member named ‚count‚
make2: [/tmp/vmware-config3/vmmon-only/linux/hostif.o] Error 1
make1: [module/tmp/vmware-config3/vmmon-only] Error 2
make1: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-smp-i686í
make: * [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config3/vmmon-onlyí
Unable to build the vmmon module.
The error message also gives me the following URL for troubleshooting help:
vmware.com/support/reference/linux/prebuilt_modules_linux.html

darn 5-post rule on sending links
 
Old 01-13-2006, 01:10 PM   #5
kevets
LQ Newbie
 
Registered: Dec 2005
Location: Northern Virginia
Distribution: Redhat, Fedora
Posts: 5

Rep: Reputation: 0
Also, I'm going to look for an install log for when I installed VMWare from my RPM... anyone know where to look for this?
 
Old 01-13-2006, 01:16 PM   #6
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
First i think you need to install the kernel source
# rpm -Uvh kernel-devel-<stuff>.rpm

Then, I think VMWare is assuming the kernel sources are installed under the /usr/src/linux directory. If you make a symbolic link, as shown below, you should be good if you installed the kernel source. Install the kernel sources, as shown earlier, and then:

# ln -s /usr/src/kernels/kernel-<all-the-rest> /usr/src/linux

I would double check, but this seems like what i remember i had to do a long time ago

Last edited by bosewicht; 01-13-2006 at 01:55 PM.
 
Old 01-13-2006, 01:25 PM   #7
kevets
LQ Newbie
 
Registered: Dec 2005
Location: Northern Virginia
Distribution: Redhat, Fedora
Posts: 5

Rep: Reputation: 0
Thanks, I'll give that a try.

Also, I'm searching on the VMWare site for info and on their system requirements page, they don't have FC4 listed anywhere. Is it safe to run this on FC4 or would I be better off with a different distro? If I were forced to say which distro I'm most comfortable with, I'd have to say RH/FC simply due to my lack of experience.
 
Old 01-13-2006, 01:32 PM   #8
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
You will be fine with fedora. There should be a lot of tutorials/howtos for vmware and fedora online. Possibly even here in the how to section.
 
Old 01-19-2006, 04:59 PM   #9
kevets
LQ Newbie
 
Registered: Dec 2005
Location: Northern Virginia
Distribution: Redhat, Fedora
Posts: 5

Rep: Reputation: 0
New problem with the VM server... as far as I can tell the server is running, but when I try and connect using the Virtual Machine Console, I get the following error:

(as far as I can tell, the VMWare Scripting API has been installed)

Code:
There was a problem connecting:



511-The process exited with an error:
    Can't load '/usr/lib/vmware/perl5/site_perl/5.005/i386-linux/auto/VMware/VmPerl/VmPerl.so' for module VMware::VmPerl: /usr/lib/vmware/perl5/site_perl/5.005/i386-linux/auto/VMware/VmPerl/VmPerl.so: cannot restore segment prot after reloc: Permission denied at /usr/lib/vmware/perl5/site_perl/5.005/DynaLoader.pm line 169.
    
     at /usr/lib/vmware/perl5/site_perl/5.005/i386-linux/VMware/Control.pm line 14
    BEGIN failed--compilation aborted at /usr/lib/vmware/perl5/site_perl/5.005/i386-linux/VMware/Control.pm line 14.
    BEGIN failed--compilation aborted at /usr/lib/vmware/perl5/site_perl/5.005/i386-linux/VMware/Control/Profiler.pm line 29.
    BEGIN failed--compilation aborted at /usr/lib/vmware/perl5/site_perl/5.005/VMware/VMServerd.pm line 16.
    BEGIN failed--compilation aborted at /usr/lib/vmware/serverd/init.pl line 48.
    VMServerd Panic: Could not initialize Perl script handler.
    
511 End of error message
 
  


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
VMware & "directory of C header files" pacranch Amigo 12 05-14-2005 03:39 PM
where are my "C header files"? learnfast Linux - Newbie 5 03-15-2005 09:38 AM
"Cannot find header source files" when trying to install Nvidia 6111 drivers naddad Linux - Newbie 3 08-31-2004 12:42 PM
PHP header("Location") Gerardoj Programming 1 05-11-2004 04:29 PM
How do I get "Kernel Header" files so I can install nVidia drivers Stevetgn Linux - Newbie 4 01-14-2004 05:57 PM


All times are GMT -5. The time now is 02:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration