Links: Homepage
Dependencies: None
Version: 1.6.18
LibPNG is the official PNG reference library.
Get the Code
Switch to /usr/local/src
and download the source package.
cd /usr/local/src
curl --remote-name --location http://download.sourceforge.net/libpng/libpng-VERSION.tar.gz
Extract the archive and move into the folder.
tar -xzvf libpng-VERSION.tar.gz
cd libpng-VERSION
Compile and Install
Configure, compile and install into /usr/local/libpng-VERSION
.
./configure --prefix=/usr/local/libpng-VERSION
make
make install
Create a symbolic link that points /usr/local/libpng
to /usr/local/libpng-VERSION
.
ln -s libpng-VERSION /usr/local/libpng