LibJPEG
Before starting: Make sure you have the necessary folders and permissions — get more information.
Links: Homepage
Dependencies: None
Version:
Free library for JPEG image compression.
Get the Code
Switch to /usr/local/src
and download the source package.
cd /usr/local/src
curl --remote-name http://www.ijg.org/files/jpegsrc.v9c.tar.gz
Extract the archive and move into the folder.
tar -xzvf jpegsrc.v9c.tar.gz
cd jpeg-9c
Compile and Install
Configure, compile and install into /usr/local/mac-dev-env/libjpeg-9c
.
./configure --prefix=/usr/local/mac-dev-env/libjpeg-9c
make
make install
Create a symbolic link to /usr/local/libjpeg
.
sudo ln -s mac-dev-env/libjpeg-9c /usr/local/libjpeg