Gimp Building Tips

If you're building from CVS, you might also want to look at Carol's excellent HOWTO build the gimp from CVS -- it has lots of tips specific to gimp CVS.

The gimp has a fair number of dependencies, which can seem intimidating the first time you try to build it. Although configure is usually clear about what's missing, that's not always helpful in figuring out what package you need to add on a particular distro. This page is a note to myself about what I needed to add to Redhat and Debian machines when building the gimp. in case I need to update another machine, and is made public in case it might be useful to others.

Building gimp 1.2.3 or 1.3.7 (tarball) on Redhat 7.2

I installed these RPMs (mostly found from rpmfind) in order to build tarballs of 1.2.3 and 1.3.7.

The gtk/glib 2.0 RPMS shouldn't be needed for 1.2, only for 1.3; but I tried 1.3 first so I haven't separated the dependencies.
atk-1.0.0-1.i386.rpm atk-devel-1.0.0-1.i386.rpm intltool-0.17-1.i386.rpm
gimp-1.2.3-1.ximian.2.i586.rpm gimp-devel-1.2.3-1.ximian.2.i386.rpm gimp-perl-1.2.3-1.ximian.2.i586.rpm
glib2-2.0.1-2.i386.rpm glib2-devel-2.0.1-2.i386.rpm gtk2-2.0.2-4.i386.rpm
gtk2-devel-2.0.2-4.i386.rpm libart_lgpl-2.3.8-3.i386.rpm libart_lgpl-devel-2.3.8-3.i386.rpm
pango-1.0.0-2.i386.rpm pango-devel-1.0.0-2.i386.rpm PDL-2.3.2-1.i386.rpm
libpng-1.2.1-2.i386.rpm aalib (from tarball)

Building gimp 1.2.4-pre1 (tarball) on Redhat 7.3

When I moved to 7.3, and downloaded the 1.2.4, I needed a few extra RPMs that for some reason I didn't seem to need for the previous build. Maybe I just didn't notice the warnings for these before now. Anyway, I needed these.
perl-GTK-0.7008-ximian.3.i586.rpm perl-Parse-RecDescent-1.80-ximian.2.i386.rpm [needs something for libmpeg]

Building the CVS tip (1.3.x) on Redhat 7.3

In addition to the 1.3.7 requirements listed above, I also needed:
autoconf-2.53-7 libart_lgpl-2.3.9-1 libart_lgpl-devel-2.3.9-1

Building gimp 1.2.3 (tarball) on Debian Woody

I apt-get installed the following packages:
libgtk1.2 libgtk1.2-dev pdl
libjpeg62 libjpeg62-dev libjpeg-progs zlibc
libpng3 libmpeg-doc libmpeg1 libmpeg3-1
libmpeg3-dev libimlib2 libtiff3g libtiff3g-dev
xlibs xlibs-dev libjpeg62-dev imgsizer
libmpeg-dev zlib1g-dev aalib1-dev
libpng2 libpng2-dev gtk-doc-0.9-5

Building the CVS tip (1.3.x) on Debian Woody

In addition to 1.2 requirements, I added:
install intltool libgtk2.0-0 gtk2.0-examples
libgtk2.0-common libgtk2.0-dbg libgtk2.0-dev libgtk2.0-doc
libart-2.0 libgimpprint-dev
That got me through and configure, but I'm hitting compile problems which are clearly a result of getting the wrong versions of files (the ChangeLog says that functions were added, but no such function exists in the file referenced by the ChangeLog). Apparently there may something wrong with the anonymous server; I'm still trying to figure this out.

Building gimp-freetype from CVS, on Redhat 7.3

Although I was already set up to build gimp from CVS on this machine, gimp-freetype wouldn't build. It turned out that it was confused by my installed gimp-config, from the gimp-devel RPM, which is of course the wrong version of gimp (I wanted it to find the gimp 1.3 I installed from source, not the gimp 1.2 I had from RPM). I had to
rpm -e --nodeps gimp-devel
then edit /etc/ to add /usr/local/lib (where the new gimp libraries live), then run ldconfig. After that, worked (albeit with some warnings, which I ignored).
Linux Imaging
General Linux links
Shallow Sky home