I have tried to install libpng12-0
but it still doesn't work.
Here:
How do I fix this?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityThe proposed solution described above didn't work for me on Ubuntu 19.04 with Cisco PacketTracer 7.2.2:
./PacketTracer7: /lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by ./libQt5WebKit.so.5)
./PacketTracer7: /lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by ./libQt5Gui.so.5)
What did work for me was:
libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
packagedpkg -x libpng12-0_1.2.54-1ubuntu1.1_amd64.deb libpng
bin
directory like so: cp libpng12/lib/x86_64-linux-gnu/libpng12.so.0.54.0 /opt/pt/bin
ln -s /opt/pt/bin/libpng12.so.0.54.0 /opt/pt/bin/libpng12.so.0
Not sure why Cisco provides all the required libs in the /opt/pt/bin like Qt and such, but somehow 'forgot' to include the older libpng12 lib...
PNG library - runtime has been upgraded from libpng12-0 to libpng16-16 in Ubuntu 18.04 and later (at least up to 19.10). To install it open the terminal and type:
sudo apt install libpng16-16
Create a symbolic link at /lib/x86_64-linux-gnu/libpng12.so.0
which references to file /lib/x86_64-linux-gnu/libpng16.so.16
sudo ln -s /lib/x86_64-linux-gnu/libpng16.so.16 /lib/x86_64-linux-gnu/libpng12.so.0
sudo ln -s /lib/x86_64-linux-gnu/libpng16.so.16 /lib/x86_64-linux-gnu/libpng12.so.0
I think - no need for any copying and renaming.
wget http://crossover.codeweavers.com/redirect/crossover.deb
) then just install it with apt i.esudo apt install /path/to/crossover.deb
It will install fine on 16.04 thru 18.04 as the dependency is " libpng12-0 | libpng16-16"