This document describes how to install the GIMP 2.2 in a non-standard location with GLib, GTK+, and other necessary programs also in non-standard locations. This also will let you install the GIMP 2.2. without root access.

This is all being done on a RH9 box with normal (non-root) user. Nothing weird was done to the install of RH9. I believe this should work on most any flavor of Linux

During my first attempt I encounted a number of errors and spent a whole week trying to resolve them. I followed the advice from the error messages and after two or three more attempts had a real mess.

Google prooved to be only semi-useful. In fact it led me down many false trails. Advice on how to solve various configure and compile errors invariablly were only half right or just plain wrong. Usenet also failed me. Various mailing lists and online forums helped a bit, but they only got me pointed to some paths that were near the Golden Path.

I finally gave up deleted everything and started anew. Taking what I knew didn't work, what I knew did work, and some basic instinct, I did a lot of trial and error. Finally I stumbled onto the Golden Path and was able to compile the Gimp 2.2. I managed to duplicate my results on other boxen (an FC3 and a RHEL3), so I feel confidant enough to say this might help you.

Some of the errors I got (in no particular order):

Xft Pango backend is required for x11 target
WARNING: *** TIFF loader will not be built (TIFF header files not found) ***
WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!
error: Test for GLIB failed.
error: Library requirements (glib-2.0 >= 2.6.0    atk >= 1.0.1 pango >= 1.8.0) not met;
'pkg-config --modversion glib-2.0' returned 2.6.4, but GLIB (2.2.1)
*** was found!
Package pango was not found in the pkg-config search path.
/bin/sh: line 1: glib-mkenums: command not found
WARNING: *** TIFF loader will not be built (TIFF library not found)
io-tiff.c:36:20: tiffio.h: No such file or directory

There were other errors too, but I didn't keep detailed enough notes at the time (hey I thought it was going to be easy).

Now finally we begin.

Download the following sources:

Make sure you put them all in the same directory.

Now set the following environmental variables.

(change foobar to what is appropriate for you)

If you also want to install Xft, xrender, and redner set PKG_CONFIG_PATH to just "/foobar//usr/lib/pkgconfig" We're not going to do that since what came with RH9 works fine in our case.

We are going to start first with pkg-config

unpack pkg-config and change into that directory:

tar -zxvf pkgconfig-0.15.0.tar.gz
cd pkgconfig-0.15.0
Now configure and build pkg-config
./configure --prefix=foobar/usr
make && make install

Do the same for each of the following.

libtiff *
gimp-print **
Doing it in the above order is highly recommended.

*libtiff will try to install the man pages in the wrong place. You will be prompted when running configure to check the locations. Just follow the on screen directions.

** For gimp-print you may get a lot of foomatic errors during the make. If this is the case add the option --without-foomatic to the configure line and try it again. During make install if you get an error about unable to write you need to reconfigure with the --enable-user-install option.

Some things to note:

Now everything should have worked fine and you should be done. Yeah I know after spending a week on this, I can't believe how simple it boiled down to. If you run into problems let me know how you solved it.

If you've got an old version of the gimp installed you might have to make sure you give the full path when running it. (i.e. /foobar/usr/bin/gimp or if you want the old version /usr/bin/gimp).