Compiling Gimp on Linux Mint Debian Edition 2

Since 2012, the gimp development branch support 16 bit images. The following tutorial explains hows how to compile gimp in 10 minutes for Linux Mint Debian Edition 2. Chances are it works for other debian based distributions as well.

The tutorial is based upon gimpbanger's write up and was adapted in a few places. Gimp itself will be installed in your home directory under ~/gimp-2.9/bin/gimp-2.9. Thus, the installation will not interfere with the gimp delivered by the distribution. So just type the following commands in your bash terminal.

Install needed libraries etc.
sudo -s aptitude install libjpeg-dev libopenexr-dev libopenraw-dev libcairo2-dev librsvg2-dev  liblua5.1-0-dev gtk-doc-tools libtiff5-dev python-dev python-gtk2-dev libasound2-dev libgimp2.0 libgimp2.0-dev libjson-glib-dev libtool  gettext libglib2.0-0 libglib2.0-dev libgtk2.0-0 libgtk2.0-dev ruby intltool libtiff5 libexif-dev libmng-dev liblcms2-dev libxpm-dev libwmf-dev valac xsltproc openexr libexif-dev libgexiv2-dev libbz2-dev git scons libjson-c2 libjson-c-dev

Create the installation directory
mkdir ~/gimp-2.9

Set the environment variables
export PREFIX=`echo ~/gimp-2.9`
export PATH=$PREFIX/bin:$PATH
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig
Enter the directory and download the sources
cd ~/gimp-2.9
git clone git://
git clone git://
git clone git://
git clone git://

Compile the sources and install them
cd babl && ./ --prefix=$PREFIX && make -j4 install
cd ../gegl && ./ --prefix=$PREFIX && make -j4 install
cd ../libmypaint && scons prefix=$PREFIX  install
cd ../gimp && ./ --prefix=$PREFIX --disable-gtk-doc && make -j4 install

Run gimp

Add new comment