Compiling a Web Development Environment on Mac OS X

LibPNG

Links: Homepage
Dependencies: None
Version: 1.5.9

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 --location --output libpng-VERSION.tar.gz 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