VMWare Installation
I had to install my compiler and make with the commands:
# apt-get install gcc
# apt-get install make
I had to install a current kernel with the command:
# apt-get install linux-headers-$(uname -r)
Then I ran into additional problems because the linux source directory was not available. This was solvd by listing the directory /usr/src/ to determine the current version of the source files, and linking to it.
# ls /usr/src drwxr-xr-x 20 root root 4096 2008-07-05 15:09 linux-headers-2.6.24-19 drwxr-xr-x 6 root root 4096 2008-07-05 15:09 linux-headers-2.6.24-19-server # ln -s linux-headers-2.6.24-19-server/ linux
Then the following error occurred:
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1 make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-server' make: *** [vmmon.ko] Error 2 make: Leaving directory `/tmp/vmware-config0/vmmon-only' Unable to build the vmmon module. For more information on how to troubleshoot module-related problems, please visit our Web site at "http://www.vmware.com/download/modules/modules.html" and "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html". Execution aborted.
This is related to the VMMon modules and has any easy fix by downloading the vmware-any-any module (see the http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html link for a link to Petr Vandrovec's website). Then you can run the runme.pl script yourself.
This generated the following messages:
VMware 2 or VMware Express detected, building for VMware 2, VMware Express and VMware Workstation 4.0.x. Using 2.6.x kernel build system. make: Entering directory `/tmp/vmware-config1/vmmon-only' make -C /usr/src/linux/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-server' CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o CC [M] /tmp/vmware-config1/vmmon-only/linux/driverLog.o CC [M] /tmp/vmware-config1/vmmon-only/linux/hostif.o CC [M] /tmp/vmware-config1/vmmon-only/common/comport.o CC [M] /tmp/vmware-config1/vmmon-only/common/cpuid.o CC [M] /tmp/vmware-config1/vmmon-only/common/hash.o CC [M] /tmp/vmware-config1/vmmon-only/common/memtrack.o CC [M] /tmp/vmware-config1/vmmon-only/common/phystrack.o CC [M] /tmp/vmware-config1/vmmon-only/common/task.o gcc: error trying to exec 'cc1plus': execvp: No such file or directory make[2]: *** [/tmp/vmware-config1/vmmon-only/common/task.o] Error 1 make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-server' make: *** [vmmon.ko] Error 2 make: Leaving directory `/tmp/vmware-config1/vmmon-only' Unable to build the vmmon module. For more information on how to troubleshoot module-related problems, please visit our Web site at "http://www.vmware.com/download/modules/modules.html" and "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html". Execution aborted.
This told me I needed to install g++ as well.
# apt-get install g++
I still continued to have trouble, mainly I couldn't connect to the bridged network. Running the following command also helped:
# apt-get install ia32-libs
Then I was able to finally run the install commands:
# cd /home/install/vmware-server-distrib/
# ./vmware-install.pl
And when that errored our, I ran the following commands:
# cd /home/install/vmware-any-any-update115
# ./runme.pl
To solve the following error:
timb@pc018:~$ vmware & [1] 12350 timb@pc018:~$ /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib32/libcairo.so.2) /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib32/libcairo.so.2) /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib32/libstdc++.so.6) /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib32/libcairo.so.2) /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib32/libcairo.so.2) /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib32/libstdc++.so.6) /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib32/libcairo.so.2) /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib32/libcairo.so.2) /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib32/libstdc++.so.6) [1]+ Done vmware
Then I had to install gcc-3.4 and g++-3.4 with the following commands:
# apt-get install gcc-3.4
# apt-get install g++-3.4
And I got VMware to run.