/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries

Due to the challenge for efficiency I decide to install vmware server on ubuntu server hardy heron 8.04

The installation process itself is smooth except this part :

/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries

vmware need a few shared libraries as requirement for register serial number. If I ignored it I’ll see repeating message that tell me that I’m unable to register vmware serial number.

Here’s little installation process:

root@dns:/home/edpteam# tar xvzf VMware-server-1.0.6-91891.tar.gz

root@dns:/home/edpteam# cd vmware-server-distrib/

root@dns:/home/edpteam/vmware-server-distrib# ls
bin  doc  etc  FILES  installer  lib  man  sbin  vmware-install.pl  vmware-vix
root@dns:/home/edpteam/vmware-server-distrib# ./vmware-install.pl

1st error I encountered :

/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:

Trying install libx11-dev :

root@dns:/home/edpteam/vmware-server-distrib# apt-get install libx11-dev

Setting up x11proto-core-dev (7.0.11-1) …
Setting up libxau-dev (1:1.0.3-2) …
Setting up libpthread-stubs0 (0.1-2) …
Setting up libpthread-stubs0-dev (0.1-2) …
Setting up libxdmcp-dev (1:1.0.2-2) …
Setting up libxcb1-dev (1.1-1ubuntu1) …
Setting up libxcb-xlib0-dev (1.1-1ubuntu1) …
Setting up x11proto-input-dev (1.4.2-1) …
Setting up x11proto-kb-dev (1.0.3-2ubuntu1) …
Setting up xtrans-dev (1.0.4-1) …
Setting up libx11-dev (2:1.1.3-1ubuntu2) …
Processing triggers for libc6 …
ldconfig deferred processing now taking place
root@dns:/home/edpteam/vmware-server-distrib#

another error occur :

/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries: libXtst.so.6: cannot open shared object file: No such file or directory
Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:

Try install libxtst6 :

root@dns:/home/edpteam/vmware-server-distrib# apt-get install libxtst6
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
debhelper intltool-debian po-debconf gettext html2text
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
libxext6
The following NEW packages will be installed:
libxext6 libxtst6
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 43.4kB of archives.
After this operation, 188kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com hardy/main libxext6 2:1.0.3-2build1 [30.9kB]
45% [1 libxext6 19956/30.9kB 64%]

Using compiler “/usr/bin/gcc”. Use environment variable CC to override.

Installing the VMware VmPerl Scripting API.

The installation of the VMware VmPerl Scripting API succeeded.

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:  9ARWH-YW5FU-28NAL-4T0JT

Starting VMware services:
Virtual machine monitor                                             done
Virtual ethernet                                                    done
Bridged networking on /dev/vmnet0                                   done
Host-only networking on /dev/vmnet1 (background)                    done
Bridged networking on /dev/vmnet2                                   done
Host-only networking on /dev/vmnet8 (background)                    done
NAT service on /dev/vmnet8                                          done

The configuration of VMware Server 1.0.6 build-91891 for Linux for this running
kernel completed successfully.

After a few trial error I think this command should applied first before installation process :

apt-get install libxt6 zlib1g libxtst6 libxrender1 libx11-dev

Time for checking vmware converter 🙂

Tags: