5

I have been using vmware horizon client on Ubuntu 16.04 but yesterday upgraded to 16.10(I regret that now :( ) since then vmware client is throwing the below error:

/usr/lib/vmware/view/bin/vmware-view: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

I googled the same error and found this link and tried the answer 2(as answer 1 seemed to be more on why we get this error) mentioned there but I am still getting the same error.

I am thinking of reinstalling 16.04 LTS but just wanted to try my luck here..

Any help?

javanoob
  • 969

3 Answers3

4

It seems VMware actually ships libpng12.so.0 with the client. You can link to it with this command:

sudo ln -s /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0 /usr/lib/x86_64-linux-gnu/libpng12.so.0
3

In Ubuntu 17.04 you can create these two symbolic links as a workaround.

sudo ln -s libudev.so /lib/x86_64-linux-gnu/libudev.so.0
sudo ln -s libpng16.so /usr/lib/x86_64-linux-gnu/libpng12.so.0
Zanna
  • 70,465
2

I tried linking the VMware provided libpng12.so.0 file and still got the lib dependency issue. Installing the DEB files directly did resolve it though:

http://packages.ubuntu.com/xenial/amd64/libpng12-0/download http://packages.ubuntu.com/xenial/i386/libpng12-0/download

Karl
  • 21
  • 1