Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Try the commands:
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
syntax instead of
And by using the compiler's -l option (for instance for the math library, use "-lm" as compiler option).
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.
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]
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:
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:
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.
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)
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