gimpusers.com logo
German version English version

Not logged in

Sign up! | Lost password?

Latest discussion

  1. gimp-developer | yesterday 11:09 PM
    [PATCH] OpenRaster: optimize PNG saving
  2. gimp-user | yesterday 10:21 AM
    ?? Status of remembering Layers setting for Canvas Resizing -- in most recent version
  3. gimp-user | yesterday 09:52 AM
    What do web designers want from GIMP?
  4. gimp-developer | yesterday 09:34 AM
    Adding ability to reverse curves dialog
  5. gimp-user | 11 Mar 2010 06:26 PM
    Enlarge Canvas: Is there a way to do it by dragging? Could/Should there be?

External news

Poll

Would you like to be able to use your Google/Yahoo/MSN (OpenID) login on gimpusers, too?

Definately! I would enjoy the possibility to use my OpenID on different websites!

I don't have a special need for OpenID but I think it could be useful

Doesn't matter to me

Never, OpenID is a pain regarding privacy and personal data protection!

No. (please post a comment)

See results

Stats

gimpusers.com RSS feed

RSS feed Retweet this!

14 Oct 2009 01:56 AM, by redforce (Richard H.)

Compiling GIMP 2.7/git-master with Ubuntu 9.04/9.10

Instructions to compile the current GIMP source code (master version in GIT repository) with Ubuntu Linux 9.04 + 9.10

Important: The current GIT master version is a snapshot, an intermediate version that can be used to follow current developments (for instance, the single window mode). For production use, always use a stable GIMP version (2.6)!

The procedure is the same for Ubuntu 9.04 and 9.10, but with Ubuntu 9.04 you have to download & compile the newest Gtk version.


# (as non-root user)

cd ~
mkdir -p tmp
cd tmp

# Important! These variables have to be set and
# are required for all further commands. If you close the
# terminal window, you have to give the 3 export commands
# again.
export PATH=$PATH:/opt/gimp-2.7/bin
export PKG_CONFIG_PATH=/opt/gimp-2.7/lib/pkgconfig
export LD_LIBRARY_PATH=/opt/gimp-2.7/lib

# Fetch the most important packages
sudo apt-get build-dep gimp

# Additional packages
sudo aptitude install checkinstall git-core libtool libopenexr-dev libopenraw-dev libspiro-dev

### BEGIN: ONLY NEEDED FOR UBUNTU 9.04 ###
# Fetch, compile, install Glib (needed for Gtk)
wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.2.tar.bz2
tar -xjf glib-2.22.2.tar.bz2
cd glib-2.22.2
./configure --prefix=/opt/gimp-2.7
make -j3
sudo make install -j3
cd ..

# Fetch, compile, install Gtk
wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.18/gtk+-2.18.2.tar.bz2
tar -xjf gtk+-2.18.2.tar.bz2
cd gtk+-2.18.2
./configure --prefix=/opt/gimp-2.7
make -j3
sudo make install -j3
cd ..
### END: ONLY NEEDED FOR UBUNTU 9.04 ###

# Fetch, compile, install BABL
git clone --depth 1 git://git.gnome.org/babl
cd babl
./autogen.sh --prefix=/opt/gimp-2.7
make -j3
sudo make install -j3
cd ..

# Fetch, compile, install GEGL
git clone --depth 1 git://git.gnome.org/gegl
cd gegl
./autogen.sh --prefix=/opt/gimp-2.7 --disable-gtk-doc
make -j3
sudo make install -j3
cd ..

# Fetch, compile, install GIMP
git clone --depth 1 git://git.gnome.org/gimp
cd gimp
./autogen.sh --prefix=/opt/gimp-2.7 --disable-gtk-doc
make -j3
sudo make install -j3
cd ..


Launch GIMP with:

/opt/gimp-2.7/bin/gimp-2.7

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

Links (pingbacks)

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 rating(s) with 4.0 of 5 stars in average

  1. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed 14 Oct 2009 04:01:10 AM CEST Luan Almeida, 14 Oct 2009 04:01 AM

    Awesome work! I gotta try it tmr.

  2. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed 14 Oct 2009 04:46:02 AM CEST jim, 14 Oct 2009 04:46 AM

    Thanks for posting this. I tried doing this earlier and it was too complicated so I gave up.
    I tried copy and pasting the above into a file and then running it. It got to this point and then failed.
    =====================
    checking for BABL... yes
    checking for GEGL... configure: error: Package requirements (gegl >= 0.1.0) were not met:

    Requested 'gegl >= 0.1.0' but version of GEGL is 0.0.22

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables GEGL_CFLAGS
    and GEGL_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.


    Configure failed or did not finish!
    make: *** No targets specified and no makefile found. Stop.
    [sudo] password for jim:
    make: *** No rule to make target `install'. Stop.

    =====================
    The problem with the "Requested 'gegl >= 0.1.0' but version of GEGL is 0.0.22" is what I ran into previously. I am on UBUNTU 9.04.

    Any suggestions?

    Thanks again for posting this

  3. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed 14 Oct 2009 05:22:59 AM CEST Dan, 14 Oct 2009 05:22 AM

    there is an error in the order of compiling, you FIRST NEED to compile BALB then GEGL! so Jim, try that first.. =)

  4. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed 14 Oct 2009 02:21:12 PM CEST redforce, 14 Oct 2009 02:21 PM

    This was the previous order. I think that it has changed and now GEGL has to be compiled first. Makes not so much sense, but I think it is like this. I'm really confused now ...

    However, don't copy it into a script but copy the commands into the terminal blockwise. If it doesn't work in this oder, just swap the GEGL and BABL compile block.

  5. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed 14 Oct 2009 03:48:05 PM CEST Jim, 14 Oct 2009 03:48 PM

    I did the steps individually and found that "ruby" was not installed so I installed that and then the compliles completed. I started gimp and got a message

    "Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory"

    Gimp started and seem to run ok though.
    Thanks again.

  6. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu 15 Oct 2009 05:55:05 AM CEST Fernando, 15 Oct 2009 05:55 AM

    I just built it, compiling BABL first then GEGL, and am now enjoying single-window mode :D.

    Thanks for the tutorial!

  7. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Sun 18 Oct 2009 04:30:21 AM CEST Dan, 18 Oct 2009 04:30 AM

    i recall that you should FIRST compile Babl as GEGL needs it in order to work, and as posted up there, a common error would appear saying that the dependency is not met. Could someone change that?

  8. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Tue 20 Oct 2009 10:51:26 AM CEST mandrux, 20 Oct 2009 10:51 AM

    Thanks a lot for the tutorial!!
    Was the only one that worked running
    LinuxMint 7 (Jaunty based).
    I agree the order: glib> gtk2> babl> gegl> gimp
    You need also Python-dev.(in my case)
    If you have trouble to compile:
    #sudo make uninstall (for every source)
    #sudo rm -rf /opt/gimp-2.7
    #start again in the right order
    Ciao

  9. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu 29 Oct 2009 09:08:46 PM CET Shorny, 29 Oct 2009 09:08 PM

    For JIM's eror(I have same error kubuntu 9.10) you set before install GEGL:
    export PKG_CONFIG_PATH=/opt/gimp-2.7/lib/pkgconfig:$PKG_CONFIG_PATH

  10. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Tue 03 Nov 2009 03:13:40 PM CET Brian142, 03 Nov 2009 03:13 PM

    Great Tutorial worked as stated on Ubuntu 9.10 x64 version (gnome desktop).
    I followed the tutorial and copied and pasted each code line in the same sequence as instructed and it worked first time.
    Thanks again for an excellent tutorial

  11. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu 05 Nov 2009 07:48:04 AM CET Bob K., 05 Nov 2009 07:48 AM

    When will 2.8 be released?. November or December 2009

  12. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu 05 Nov 2009 11:23:16 AM CET redforce, 05 Nov 2009 11:23 AM

    "It will be released when it's finished" - there is no release plan in the way other products have it. I guess it will be released in December or January...

  13. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Wed 06 Jan 2010 07:09:47 PM CET hamacker, 06 Jan 2010 07:09 PM

    complementing yout article, create a shortcut running 'gksudo gedit /usr/share/applications/gimp27.desktop' and paste this content :

    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=GIMP Image Editor 2.7
    GenericName=Image Editor 2.7
    Comment=Create images and edit photographs
    Exec="/opt/gimp-2.7/bin/gimp-2.7"
    Icon=gimp
    Terminal=false
    Categories=Graphics;2DGraphics;RasterGraphics;GTK;
    StartupNotify=true
    MimeType=application/postscript;application/pdf;image/bmp;image/g3fax;image/gif;image/x-fits;image/pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/tiff;image/jpeg;image/x-psd;image/png;image/x-icon;image/x-xpixmap;image/svg+xml;image/x-wmf;
    X-Ubuntu-Gettext-Domain=gimp20
    X-Ubuntu-Gettext-Domain=gimp20

  14. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Sat 06 Feb 2010 11:51:02 AM CET Sslz, 06 Feb 2010 11:51 AM

    I can't continue with the installation because i compile babl and then i get an error message and i can't continue with gegl..


    Requested 'babl >= 0.1.2' but version of babl is 0.0.22

    What can i do ?

  15. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Thu 11 Feb 2010 07:47:14 PM CET Partha, 11 Feb 2010 07:47 PM

    Make sure that you exported the pkgconfig directory properly: Especially make sure that this is correct:
    export PKG_CONFIG_PATH=/opt/gimp-2.7/lib/pkgconfig

    Can you paste the lines after the line you pasted?

  16. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Tue 02 Mar 2010 06:45:49 AM CET mik, 02 Mar 2010 06:45 AM

    there is something odd with building gegl as of this post.

    I had to compiel gegl with make -k and then do make install -k to tell it to just keep on going despite the errors.

    Not sure where they cropped up but here is my gegl compile line:

    # Fetch, compile, install GEGL
    git clone --depth 1 git://git.gnome.org/gegl
    cd gegl
    ./autogen.sh --prefix=/home/rtaylor/bin/gimp-2.7 --disable-gtk-doc
    #make -j3
    make -k
    #make install -j3
    make install -k
    cd ..


    Hope it helps you. Note the lack of sudoe on make install -k as i am not installing system wide, adjust as required.

  17. http://www.gimpusers.com/news/2009-10-14/compiling-gimp-27-git-ubuntu-904-910.html Sat 06 Mar 2010 12:02:28 AM CET Bob63, 06 Mar 2010 12:02 AM

    No matter what I tried, I could not get this to compile on Ubuntu 9.04 x86 (Jaunty).

    However, I had been thinking about upgrading my OS anyhow, so I installed LinuxMint 8 Helena, which is based on Ubuntu 9.10 (Karmic). I still had an issue with GEGL, but thanks to mik and his suggestion of changing the make and make install commands to use -k option, I was able to get this to work.

    I am not a frequent image creator/editor, but when I do this sort of task, I enjoy working with Gimp. It seems like I learn something new all the time. I think I will really like the single-window mode rather than fussing with three separate windows. I'm really looking forward to Gimp 2.8.

    Thanks for the HOW-TO, and all the comments.

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