We are going to build gimp from the directory $HOME/gimp/2.7.1 and install it into $HOME/gimp-2.7.1 or /opt/gimp-2.7.
Installing to my home directory allows me to have multiple copies of the gimp, and run which ever version that I want. So my tree actually looks something like this:
(my build files)
(the install area)
Step 1. Start with a clean install of Ubuntu.
Of course you don’t need to do that, but I thought it was a great place to start. I did this by installing a version of 10.04 LTS Ubuntu 64bit on a Sun VirtualBox VM. If you don’t know what I just said, then just start with Ubuntu 10.04.
Step 2. Download the dependencies.
libgtk2.0-dev ruby intltool libtiff4-dev python-gtk2-dev \
libjasper-dev libexif-dev libmng-dev liblcms1-dev \
libxpm-dev librsvg2-dev libwmf-dev libasound2-dev \
libdbus-glib-1-dev libaa1-dev libwebkit-dev libhal-dev \
Step 3. Download the source files that we need to install.
mkdir -p gimp/2.7.1/
tar xf babl-0.1.2.tar.bz2
tar xf gegl-0.1.2.tar.bz2
tar xf gimp-2.7.1.tar.bz2
Step 4. Pick somewhere to install
Now here we can choose where we want to install. The default is /usr/local/. (ie PREFIX=/usr/local), however that is known to cause problems. Personally, I want to have the installations and libraries seperate for each version, so that I can run whatever version of gimp that I want, so I’ll use PREFIX=$HOME/gimp-2.7.1. If you want to install system wide then use PREFIX=/opt/gimp-2.7.
Step 5. Start the build
You need “sudo make install” below if installing to /opt.
Step 6. Run the program
Now you can run gimp as: