The libpng package contains libraries used by other programs for reading and writing PNG files.
Download (HTTP): http://telia.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.5.tar.bz2
Download (FTP): ftp://ftp.iasi.roedu.net/pub/mirrors/ftp.gimp.org/gimp/libs/libpng-1.2.5.tar.bz2
Download size: 376 KB
Estimated Disk space required: 4.1 MB
Estimated build time: 0.16
Install libpng by running the following commands:
make prefix=/usr \ ZLIBINC=/usr/include ZLIBLIB=/usr/lib -f scripts/makefile.linux && make prefix=/usr install -f scripts/makefile.linux |
ZLIBINC=/usr/include ZLIBLIB=/usr/lib: This forces libpng to look for the zlib includes and libraries where we have them installed.
-f scripts/makefile.linux: This points make at the Linux version of the makefile as libpng doesn't use a autoconf routine instead coming with various makefiles for different platforms.
As with most libraries, there is no configuration to do, save that the library directory i.e. /opt/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run while logged in as root.