LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Location of the directory of "C" header files (https://www.linuxquestions.org/questions/linux-software-2/location-of-the-directory-of-c-header-files-402721/)

RoMan65 01-12-2006 10:08 PM

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

paragn 01-12-2006 11:06 PM

do you got any error messages while installing vmware?

timmeke 01-13-2006 02:00 AM

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).

kevets 01-13-2006 01:06 PM

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

kevets 01-13-2006 01:10 PM

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?

bosewicht 01-13-2006 01:16 PM

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

kevets 01-13-2006 01:25 PM

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.

bosewicht 01-13-2006 01:32 PM

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.

kevets 01-19-2006 04:59 PM

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



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