VMware Horizon Community
deterdangler
Contributor
Contributor

libpng12.so.0: cannot open shared object file: No such file or directory

I recently upgraded my ubuntu version from 16.04 LTS to 16.10 and since then receiving 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"

How do I resolve this error?

I am using vmware horizon client version 4.2.0 on 64 bit Ubuntu 16.10.

Any help on this?

Tags (2)
10 Replies
deterdangler
Contributor
Contributor

Anybody out there who can help me on this?

Reply
0 Kudos
txiong
VMware Employee
VMware Employee

"/usr/lib/vmware/view/bin/vmware-view" means this question is for Linux client, however, this form is for Linux agent.


I will find a Linux client engineer for your question.

deterdangler
Contributor
Contributor

Any update on this?

Please help me on this. I am using two laptops because of not able to launch vmware client on ubuntu.

Thanks in Advance.

Reply
0 Kudos
Michael_Zhang
Enthusiast
Enthusiast

The error indicated that there's missing libpng12.so.0 on your system, that could be caused by ubuntu upgrade, so please install libpng12 firstly before using Horizon client. Or for a workaround, you can make a soft symbol link libpng12.so.0 to the libpng installed by Ubuntu system.

Reply
0 Kudos
deterdangler
Contributor
Contributor

Where can I get "libpng12.so.0"? It is not available for Ubuntu 16.10.

Reply
0 Kudos
Michael_Zhang
Enthusiast
Enthusiast

First, Horizon Linux client just supports Ubuntu LTS version and the latest version is 14.04. 

Then to workaround this issue you can make a soft link of the libraries you installed. for example,   you use the command to create a soft link file libpng12.so.0 which linked to libpngxx.so.x under /xxx/xxx  "sudo ln -s /xxx/xxx/libpngxx.so.x /usr/lib/libpng12.so.0"

deterdangler
Contributor
Contributor

Thanks for the reply. I understand that I should not have upgraded my linux version from 16.04LTS to 16.10. It was my mistake. It was working fine on 16.04LTS.

I followed your advice and created a symlink but I get this error in the console when trying to connect to remote machine using vmware-view:

vmware-view 16554| rmksContainer(16575): vmware-remotemks-container: /usr/lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by vmware-remotemks-container)


I really appreciate if you can suggest any other workaround to get this working. I do not want to go back to 16.04LTS because that is a lot of pain and there is no easy way,I have to take backup of everything and load new version of Operating system.

Reply
0 Kudos
Michael_Zhang
Enthusiast
Enthusiast

Ok, that's indicate the the libpng version installed by Ubuntu 16.10 don't have required information, so the soft link workaround doesn't work on Ubuntu 16.10. Then maybe you need download or copy libpng12.so.0 library from internet/other machines to your machine, then try it again.

Again, Ubuntu 16.10 is not our supported OS, you may hit other unexpected issues even you can pass this issue.

Reply
0 Kudos
GuiBert
Contributor
Contributor

I run vmware horizon client version 4.3.0 (build 4710754) on Ubuntu 16.10.

1) download and install "VMware-Horizon-Client-4.3.0-4710754.x64.bundle"

2) When I launched vmware by a command line "vmware-view", I had an error like you (libpng12.so.0).

3) Download "libpng12" package "https://packages.debian.org/en/jessie/amd64/libpng12-0/download" and install "libpng12-0_1.2.50-2+deb8u2_amd64.deb" (you can use GDebi software)

4) At this stage, if you try to launch "vmware-view", you will see the following message :

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

5) Your system needs "libudev0" and you have "libudev1". To solve it, you just need to create a link as describe below :

     "sudo ln -s   /lib/x86_64-linux-gnu/libudev.so.1   /lib/x86_64-linux-gnu/libudev.so.0"

6) In terminal, run "vmware-view"

7) Enjoy !  ==> VMware Horizon Client 4.3.0 runs on Ubuntu 16.10

jlivingston
Contributor
Contributor

I know this is an older post but still works in 2017 using Ubuntu 17.04.

Reply
0 Kudos