NOTE: I’m not going to maintain this post any more (18th April 2016). Now Stretch is the current testing, I’m putting up a new page for the build there. Recent versions of GIMP from git need libmypaint, which adds an extra dependency. Please see this new article for compiling on Stretch.
I compiled GIMP for my Debian Jessie/Sid install last night. I used this marvellous document but there were a couple of errors, so I’m adding this update here. This means that this document is distributed by the same license as the original CC Attribution-Share Alike 3.0 Unported.
At time of writing 2.9.x is actually GIMP 2.9.1
What to do under DEBIAN
Open a terminal window and copy line for line int the window. Press RETURN and watch. The block with all the packages are one line, the “\” tells the system to ignore the line break, so you can copy and paste it in one chunk into your terminal.
Prepare the environment
cd export PREFIX=`echo ~/gimp` export PATH=$PREFIX/bin:$PATH export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig
Install needed packages
Become superuser, update your system, install, go back to normal user.
su - apt-get update apt-get upgrade apt-get install libtool automake autoconf git-core gettext \ libglib2.0-0 libglib2.0-dev libgtk2.0-0 libgtk2.0-dev ruby \ intltool libtiff5 libtiff5-dev python-dev python-gtk2-dev \ libexif-dev libmng-dev liblcms1-dev libxpm-dev librsvg2-dev \ libwmf-dev libasound2-dev valac xsltproc openexr libexif-dev \ libexif12 libgexiv2-dev libbz2-dev gtk-doc-tools \ libjson-glib-dev exit
There are also some optional packages to help with dependencies:
su - apt-get install libaa1-dev libwebkit-dev libopenexr-dev \ libjasper-dev libgs-dev libpoppler-glib-dev exit
Don’t worry about these for a basic compile though. This should be the last time you need to become root to complete the process.
Get the source
mkdir gimp-build cd gimp-build git clone git://git.gnome.org/babl git clone git://git.gnome.org/gegl git clone git://git.gnome.org/gimp
Generate the make files, compile and install
In the autogen lines a lot of checks are done – watch for warnings and error messages!
cd babl ./autogen.sh --prefix=$PREFIX make make install cd ../gegl ./autogen.sh --prefix=$PREFIX make make install cd ../gimp ./autogen.sh --prefix=$PREFIX --disable-gtk-doc make make install
This gets you gimp-2.9 in the directory ~/gimp/bin . If you have error try to add any missing package and try again. Post a comment on this post if you like.
Keeping GIMP up to date
Don’t delete the source directory. Backup your directory with the working GIMP 2.9. The update can break everything in there…..
You can update easily with:
cd export PREFIX=`echo ~/gimp` export PATH=$PREFIX/bin:$PATH export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig cd gimp-build cd babl git clean -f git pull --rebase ./autogen.sh --prefix=$PREFIX make make install cd ../gegl git clean -f git pull --rebase ./autogen.sh --prefix=$PREFIX make make install cd ../gimp git clean -f git pull --rebase ./autogen.sh --prefix=$PREFIX make make install
This is fast, because only new and changed stuff is pulled from the servers and compiled.
So that’s it! Enjoy the full range of bit depths, and all the other new work in progress features of the new GIMP.