If you're running Ubuntu Server 6.10 (and I assume the same for the desktop version, 6.10 as well), the kernel was compiled with GCC 4.1.2, and not GCC 4.0.4.
If you're running 6.10 of Ubuntu, you should install the same version of GCC that was used to compile your kernel, which is 4.1. So if you're following the steps in
jameslin's post, you should run these commands instead:
# Install gcc-4.1, make, and appropriate Linux kernel headers
$ sudo apt-get install gcc-4.1 make linux-headers-$(uname -r)
# Create a symlink for gcc -> gcc-4.1
$ sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc
If you already accidentally ran
jameslin's original commands and installed GCC-4.0.4 instead, you can undo your actions and install GCC 4.1.2 by doing the following:
# These two commands remove GCC 4.0 and install GCC 4.1:
$ sudo apt-get remove gcc-4.0
$ sudo apt-get install gcc-4.1
# These two commands remove the old symlink you created for gcc 4.0, and create a new one for gcc 4.1:
$ sudo rm /usr/bin/gcc
$ sudo ln -s /usr/bin/gcc-4.1 /usb/bin/gcc
Now you can continue to install vmware tools:
NOTE: Make sure you run these commands locally on the PC, and not over SSH as it won't work - vmware has to drop the network connection 1/2-way through installation to complete, making a remote SSH install destined to fail.
1) In VMWare Server, go to: VM -> Install VMWare Tools
2) Mount the CD-Rom in Ubuntu: sudo mount /dev/cdrom /media/cdrom0
3) sudo mkdir /vmware-temp
4) sudo cp VMwareTools-1.0.2-39867.tar.gz /vmware-temp
5) cd /vmware-temp
6) ls -l
7) tar xvf VMwareTools-1.0.2-39867.tar.gz
8) cd /vmware-temp/vmware-tools-distrib
9) sudo ./vmware-install.pl
10) Follow the instructions.
11) When done, remove the temp directory: sudo rm -r /vmware-temp