LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   how to install VMware tools on a fedora guest (https://www.linuxquestions.org/questions/fedora-installation-39/how-to-install-vmware-tools-on-a-fedora-guest-903260/)

SANA4SPA 09-15-2011 08:00 PM

how to install VMware tools on a fedora guest
 
Can't figure out where is my directory of c header files

[root@SANA4SPA jcs]# vmware-config-tools.pl

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ OK ]
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
[yes] y

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]

user7 09-15-2011 08:17 PM

This should do the trick.
Make sure you do this as root.

Code:

# yum install kernel-devel
Or using sudo instead of a su -

Code:

$ sudo yum install kernel-devel

corp769 09-15-2011 08:21 PM

Quote:

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
Note that you will definitely need to change the path to the correct version of the kernel installed and running on your system. To find the correct path, simply navigate to /usr/src and look at the installed versions. The newest one should be the correct version.

SANA4SPA 09-17-2011 06:59 PM

Thank you both for taking the time to help me out.
 
I updated my kernel and was able to navigate to the files listed. But I'm not sure which one of these files I am suppose to use and also how to enter the syntax.


[root@SANA4SPA jcs]# cd /usr/src/kernels/
[root@SANA4SPA kernels]# ls -1
2.6.35.14-95.fc14.i686
2.6.35.14-95.fc14.i686.PAE
2.6.35.14-96.fc14.i686
2.6.35.6-45.fc14.i686

user7 09-18-2011 04:36 PM

Once you have the headers installed, just run the vmware-config-tools.pl

When it asks this:
Code:

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

Just hit enter. Most of the time you can just hit enter which will accept the defaults. Which should work just fine for Fedora.

SANA4SPA 09-20-2011 05:38 PM

I've tried hitting enter so as to accept the default but it takes me right back to where I was.

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

eindoofus 09-30-2011 04:43 PM

I'm having the same problem but my installation says:

Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes]


I've tried changing it to both /usr/src/linux/include and /usr/src/kernels/2.6.40.4-5.fc15.i686/include/linux (the only kernel listed), and it can't find either.

I've already done the following before the VM Tools install:

yum -y update kernel
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++


followed by a restart and everything appears to be up to date. I'm not sure what else to do.

eindoofus 09-30-2011 05:04 PM

Nevermind, I fixed the problem with:

yum -y install kernel-PAE-devel
yum -y install patch


restart, then a reinstall.

SANA4SPA 09-30-2011 10:52 PM

How to install VMware Tools on Virtual Fedora 14
 
Hello, thank you for taking the time. I installed all the items you stated. even accept the default but I still get the same outcome. Help!!

[jcs@SANA4SPA ~]$ su
Password:
[root@SANA4SPA jcs]# vmware-user
[root@SANA4SPA jcs]# vmware-user: could not open /proc/fs/vmblock/dev
vmware-tools is installed, but it has not been (correctly) configured
for this system. To (re-)configure it, invoke the following command:
/usr/bin/vmware-config-tools.pl.


[root@SANA4SPA jcs]# /usr/bin/vmware-config-tools.pl

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ OK ]
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
[yes] y

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] **************I accepted the default here.

The path "/usr/src/linux/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] ^C
[root@SANA4SPA jcs]#


All times are GMT -5. The time now is 06:51 AM.