gimpusers.com logo
German version English version

Not logged in

Sign up! | Lost password?

Latest discussion

  1. gimp-user | today 01:45 AM
    Crashes in GIMP 2.6.6
  2. gimp-docs | yesterday 11:28 PM
    Can the gimp-help-2 module be maintained using Damned-Lies?
  3. gimp-user | yesterday 11:25 PM
    Error on script-fu
  4. gimp-developer | yesterday 10:55 PM
    Summary: How to submit gimp/gegl bugzilla with GIT patch
  5. gimp-docs | yesterday 10:01 PM
    Where have all my pictures gone?

External news

Poll

Did you ever buy products (books, video dvds) about GIMP?

No, never did

Yes, helped alot (please post)

Yes, helped a little bit (please post)

Yes but I was disappointed (why? please post)

See results

Stats

gimpusers.com RSS feed

RSS feed Retweet this!

04 Mar 2008 01:38 AM, by redforce (Richard H.)

Compiling GIMP 2.4.5 with Ubuntu 7.10

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.

This article has been written using GIMP 2.4.5. It's divided into 6 steps and takes about 60 min to complete for an average user. 14552 times read so far. Category: Basics, required skill: 2 of 5

6 comments have been posted so far.

Available in other languages:

  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
    Screenshot of step 1
    Click to enlarge
  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.
    Screenshot of step 2
    Click to enlarge
  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).
    Screenshot of step 3
    Click to enlarge
  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.
    Screenshot of step 4
    Click to enlarge
  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.
    Screenshot of step 5
    Click to enlarge
  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".
    Screenshot of step 6
    Click to enlarge

This article is licensed under the following license: Attribution-Noncommercial 3.0 Austria

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.

Comments are chronologically arranged.

  1. photocomix, 06 Jul 2007 07:57 AM

    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?

  2. redforce, 06 Jul 2007 11:34 AM

    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 ;)

  3. JOSE ALEJANDRO, 14 Sep 2007 05:51 PM

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

  4. YOU ROX MAN, 25 Jun 2008 09:51 AM

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

  5. Carlos, 16 Jul 2008 03:01 AM

    yo mama

  6. edward, 25 Jul 2008 03:27 AM

    GIMP 2.4.5

Registered users can log in (top right of the page) to use their profile name to post comments, request email notification on new comments and attach images (e.g. their versions of the effect) to their postings.

Are you human?

Adobe® Photoshop® is a registered trademark of Adobe Systems, Inc. Linux is a trademark of Linus Torvalds. Ubuntu and Canonical are registered trademarks of Canonical Ltd. | Clock times are shown as CET / CEST | Imprint / Privacy policy | powered by bitfire it services