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.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
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
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)
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.