RSS/Atom feed Twitter
Site is read-only, email is disabled

Tutorial: Compiling GIMP 2.4.5 with Ubuntu 7.10

Written by · Created on Mar 04, 2008, last updated about 13 years ago CC BY-NC License
A newer version of this article is available: Compiling GIMP 2.8-RC1 for Ubuntu 12.04
Compiling GIMP 2.4.5 with Ubuntu 7.10

Motivation

Here you can read how to download, compile and run the newest version of the GIMP (here: GIMP 2.4.5) under a Ubuntu Linux 7.10 environment. The steps are similar for other Linux/BSD environments.

Tutorial details

  1. 1

    It seems to be not very useful to compile GIMP 2.4 for Ubuntu 7.10 because it is already shipped. However, if you need certain bug fixes/updates, you may want to use the most recent (minor) version. Also, the process should be roughly the same for development versions (2.5.*), but there will be some changes because of the new GEGL part. Also, if you use a Linux distribution that does not ship GIMP 2.4, you might find this how-to useful.

    The images are from the “compiling 2.3.18” tutorial yet, but it makes no difference.

    At first, you have to download the source code. You can find the URL on our download page or at ftp.gimp.org.

    The file name of the source code archive looks like this: gimp-2.4.5.tar.bz2

    2.4.5 is the version number (2.4.* are stable releases, 2.5.* are for testing) and a .tar.bz2 file is an archive compressed with bzip2.

    To do the download, change to the working directory (we use tmp in the current user’s home here) and call wget:

    *mkdir ~/tmp
    cd ~/tmp
    wget ftp://ftp.gimp.org/pub/gimp/v2.4/gimp-2.4.5.tar.bz2 *

  2. 2

    Now extract the source code:

    tar -xjvf gimp-2.4.5.tar.bz2

    The code files should now reside in the “gimp-2.4.5” directory.

  3. 3

    In order to compile the GIMP, we need some libraries and tools. You can find the most important dependencies here: http://svn.gnome.org/svn/gimp/trunk/INSTALL

    autoconf, automake1.9, libtool, make create the ./configure script and the Makefiles
    gettext is needed for localisation of GIMP (i.e. for non-English users)
    pkg-config manages installed libraries
    libgtk2.0-dev provides graphical widgets (windows, menus, buttons, …) and depends on libglib2.0-dev (helper library for lists etc.), libpango1.0-dev (renders text), libatk1.0-dev (provides accessibility tools like screen magnifier, screen reader support and so on), libfreetype6-dev (makes the use of FreeType fonts possible) and many others
    libart-2.0-dev provides 2D graphics manipulation
    intltool, automake, flex, bison are build tools
    gtk-doc-tools, libgtkhtml2-dev for the documentation
    python-dev, python-gtk2-dev for Python-Fu
    libdbus-glib-1-dev, libaa1-dev, libjpeg62-dev, libpng12-dev, libpoppler-glib-dev, libtiff4-dev, libmng-dev, librsvg2-dev, libwmf-dev, python-dev, python-gtk2-dev, libdbus-glib-1-dev, libgnomevfs2-dev, libxmu-dev and their dependencies for miscellaneous file formats and services
    libexif-dev, libexif-gtk-dev to process EXIF data — note: the most recent GIMP versions need libexif/0.6.15 or later, but Ubuntu 7.04 comes with 0.6.13, so libexif won’t be recognised by ./configure and will not be compiled into the GIMP

    A lot of other packages will be installed as dependencies. The “-R” parameter in the command line means that only really required dependencies are going to be installed. Without this option, apt would install Apache and other silly things.

    Enter this command:
    sudo aptitude install -R libgtk2.0-dev libart-2.0-dev libtiff4-dev libaa1-dev libmng-dev libpoppler-glib-dev librsvg2-dev libwmf-dev libxpm-dev libgnomeui-dev libgnome-keyring-dev liblcms1-dev libdbus-glib-1-dev gtk-doc-tools libgtkhtml2-dev intltool automake1.9 flex bison libgnomevfs2-dev libxmu-dev libexif-gtk-dev python-gtk2-dev libexif-dev

    It’s also possible to install the packages using the graphical package manager Synaptic.

    If you use other distributions or older Ubuntu releases, you may have to download and compile some packages manually in order to have current versions installed (as recent as the GIMP needs them).

  4. 4

    Now launch the configure script in the directory with the source code:

    cd gimp-2.4.5
    ./configure —prefix=/opt/gimp-2.4

    configure adjusts GIMP to your system and generates the files that are required for compiling.

  5. 5

    Now just type
    make
    wait wait wait and when it’s complete:
    sudo make install

    If you have much memory and/or several CPUs, you can use “nice make -j3” instead of make; this will cause make to use up to 3 instances in parallel. For multi-processor systems, a value of (number of CPUs + 1) is recommended. If there are errors with “make -j3”, try a simple “make” and there’s a big chance that it will work this time.

  6. 6

    The GIMP has now beed installed to /opt/gimp-2.4 — start it with:
    /opt/gimp-2.4/bin/gimp

    Note: the new GIMP will be installed to /opt/gimp-2.4 while the original Ubuntu GIMP remains in /usr => So it is safe to have both versions at the same system! You can start the old GIMP with “/usr/bin/gimp” and the new one with “/opt/gimp-2.4/bin/gimp”.

Comments

Post your own comments, questions or hints here. The author and other users will see your posting and can reply to it.

Of course, you can also ask in the chat.

Subscription management

Please log in to manage your subscriptions.

User rating

This topic (Compiling GIMP 2.4.5 with Ubuntu 7.10) has been rated 4.0/5.0.

New comments are disabled because of spam.

sri rated this topic with 4/5
almost 14 years ago

hello everybody i have a vps hosting ...where i get number of linux operating sys..with root access...i tried with all the steps explained above... but still i could not compile...is there any one to help me? sridvcati(at)gmail.com is my mail id...plz reply to my mail so that i can give username and password of my vps account...thanks alot in advance ...expecting your mail....

edward
over 15 years ago

GIMP 2.4.5

Carlos
almost 16 years ago

yo mama

YOU ROX MAN
almost 16 years ago

Thnx for making this site.
I hope you feel fuzzy inside =]

JOSE ALEJANDRO
over 16 years ago

CREO QUE DEBERIAN DE USAR UN SISTEMA QUE NO ESTE TAN LARGO PARA PODE LEER

redforce member for over 17 years redforce 230 comments
almost 17 years ago

Hi, at first I wanted to change the CVS tutorial to an SVN tutorial, but as the current SVN copy didn't compile correctly on my computer, I thought it would be enough to compile the latest development release... the SVN trunk could cause problems and maybe is *too* up-to-date ;)

photocomix member for over 17 years photocomix 25 comments
almost 17 years ago

i see you remove the part on installing by CVS (i suppose because now is used instead subversion)

Could you (or somebody else) add instruntion to use subversion?