From Tommy Grav 2008-05-12 09:51:08

I was having a problem installing jpeg-6b on my PPC with 10.5.2. I found this recipe on :

Install libraries to save and send your images as jpeg.

If you have fink or macports try installing libjpeg that way (e.g. fink install libjpeg libjpeg-bin libjpeg-shlibs) Otherwise follow these instructions to install libjpeg from source.

  1. download libjpeg
  2. untar that (tar -xvzf jpegsrc.v6b.tar.gz)
  3. cd jpeg-6b/
  4. ln -s which glibtool ./libtool
  5. export MACOSX_DEPLOYMENT_TARGET=10.5 (for tcsh or csh use setenv


  1. ./configure --enable-shared --prefix=/usr/local/
  2. if /usr/local/ /usr/local/include /usr/local/lib don't exist create them:
    1. sudo mkdir /usr/local/
    2. sudo mkdir /usr/local/lib/
    3. sudo mkdir /usr/local/include/
  3. make
  4. sudo make install-lib
  1. sudo make install-headers

In point 4 i used:

ln -s /usr/bin/glibtool libtool