How to Build GIMP 2.8 from Source in Ubuntu 12.04



After many years GIMP 2.8 has finally been officially released! Lots of changes were put into this release and on May 3rd, 2012 we’ve got our official release! Congratulations to everyone involved! Below I’ve published a method for building/compiling GIMP from source in Ubuntu 12.04. I’ve run through this in a 64-bit virtual machine and it worked without any issues. It will likely work using other versions of Ubuntu, I just happen to be using 12.04.

I’ve made the necessary minor changes below in order to to install the official Gimp 2.8 release. Once the packages are available in the Ubuntu repositories, this process becomes unnecessary as GIMP could then simply be installed from the Ubuntu Software Center.

Before compiling make sure that these things are installed

  • babl
  • gdk-pixbuf
  • gegl
  • glib
  • gtk
  • pango

Before proceeding install the below packages as they are dependencies of Gimp 2.8

  • automake-1.11
  • intltool
  • gtk-doc-tools
  • python-gtk2-dev

Ok Now we are ready for installing Gimp 2.8

Preparation / Installing the Required Packages and Libraries

sudo apt-get update
sudo apt-get install cvs subversion git-core mercurial
sudo apt-get build-dep gimp
sudo apt-get remove libgegl-0.0-dev libbabl-0.0-0-dev
sudo apt-get install libavformat-dev libavcodec-dev valac-0.16 graphviz ruby1.9.1-dev liblua5.1-0-dev
sudo apt-get install libopenexr-dev libopenraw-dev libexiv2-dev libsdl1.2-dev libgs-dev libjasper-dev
sudo apt-get install checkinstall

Configuring the Build Environment

cd /tmp
mkdir gimp_build && cd gimp_build

The following three “export” commands would need to be ran again if you close the terminal session before finishing this build. These are only session variables and wont survive closing the terminal.

export PATH=/opt/gimp-2.8/bin:$PATH
export PKG_CONFIG_PATH=/opt/gimp-2.8/lib/pkgconfig
export LD_LIBRARY_PATH=/opt/gimp-2.8/lib

Building and Installing BABL From Source

git clone git://
cd babl
./ --prefix=/opt/gimp-2.8
sudo make install
cd ..

Building and Installing GEGL From Source

git clone git://
cd gegl
./ --prefix=/opt/gimp-2.8
sudo make install
cd ..

Building and Installing GIMP v2.8 From Source

tar -xjf gimp-2.8.0.tar.bz2
cd gimp-2.8.0
./configure --prefix=/opt/gimp-2.8
sudo make install

Testing the Build by launching GIMP


Adding Gimp to your menu


You will get the window here Click on the left side graphics menu

Now click new item on right side menu and a window opens

Enter the following information:
Name: “Gimp”
Command: “/opt/gimp-2.8/bin/gimp-2.8″

Creating a Desktop Icon

sudo apt-get install --no-install-recommends gnome-panel
gnome-desktop-item-edit ~/Desktop/ --create-new

After typing the last command you will see this window.

Enter the following information:
Name: “Gimp”
Command: “/opt/gimp-2.8/bin/gimp-2.8″

About pacesettergraam

A good and realistic person

Posted on July 15, 2012, in ubuntu and tagged , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: