Underworld

a long term geodynamics simulation platform

Libjpeg Download and Installation


What is libjpeg and do I need to install it?

libjpeg is used by gLucifer for image output in jpeg format. Mac users can download and install libjpeg either using Fink or manually (see below).

However png is the default format, which requires libpng.

Further information on libjpeg is available at http://en.wikipedia.org/wiki/Jpeg


Downloading and Installing libjpeg using Fink (mac only)

Type the following (from any directory, assuming you have Fink in your path):

fink install libjpeg libjpeg-shlibs

This will install in the /sw/ directory, hence there should not be any need to set up environment variables.


Downloading and Installing libjpeg Manually

These instructions apply to any Linux, Unix or Mac operating system.

1. The latest source archive for libjpeg can be downloaded from http://www.ijg.org/ (ftp site). Look for a file like jpegsrc.v6b.tar.gz

2. Once downloaded, unzip the file which will decompress the file into its own directory:

tar zxvf jpegsrc.v6b.tar.gz

If you require multiple users to have access to it, install it in a place like /usr/local, for which superuser or administrator access may be required.

3. Navigate into the libjpeg directory:

cd  jpegsrc.v6b/

and then configure and install it into a suitable directory, for example:

./configure --prefix=/usr/local

and then type (root or administrator access may be required; on macs type "sudo make install" in place of the "make install" step):

make
make install


Setting up Environment Variables Manually

Add the following environment variable to your ~/.bashrc (if you are using bash) or ~/.tcshrc (if you are using tcsh), where /usr/local is the directory in which you installed libjpeg:

bash:

export JPEG_DIR=/usr/local

tcsh:

setenv JPEG_DIR /usr/local

The next time you configure Underworld, gLucifer will know where libjpeg is.


-- Wendy Mason - 25 Jan 2006