Skip to main content
  1. Posts/

Install Libpng12 on Debian10

·1 min

Dear cisco, why the fuck are you still using libpng12 for packettracer????

I finally decided to continue studying for my CCNA. But when I installed packettracer7 on my Debian 10 machine I got an error.

Installing Packettracer on Debian 10 Buster gives the error: //“./PacketTracer7: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory”//

Debian 10 doesn’t have libpng1.2 in its repository, in fact libpng1.2 is outdated. The current version of libpng is libpng16 (1.6). Packettracer7.2 uses libpng12 (1.2), so we need to compile it from source.

Download libpng-1.2.59.tar.gz from https://sourceforge.net/projects/libpng/files/libpng12/1.2.59

Uncompress the file with gzip:

gunzip libpng-1.2.38.tar.gz

Extract the file:

tar xf libpng-1.2.38.tar

Compile libpng:

./configure –prefix=/usr/local (This will install the files under the /usr/local )
make
sudo make install

Move into /usr/local/bin and copy the libpng12.so.0 file to the packettracer installation folder (default location: /opt/pt/bin)

now you can start Packettracer7.2