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

Compile latest GIMP source (developer version) for Ubuntu 9.04

By at 2009-04-23 00:02:25 UTC, last updated about 14 years ago. CC BY-NC License

Here you can see how to fetch the current GIMP source code from the Git server and compile it for Ubuntu 9.04:

1. The new files for GIMP 2.7 shall go to /opt/gimp-2.7 so they don’t disturb the GIMP version installed by the system (GIMP 2.6.6 in case of Ubuntu 9.04). Both versions shall be usable at the same time. So you need to set these environment variables on the command line (and later use the -prefix parameter):

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

Now switch to a temporary directory and fetch BABL, GEGL and GIMP from the Git server:

mkdir ~/tmp # if not existing yet
cd ~/tmp
git clone git://git.gnome.org/babl
git clone git://git.gnome.org/gegl
git clone git://git.gnome.org/gimp

Some libraries and its development packages (including headers, API definitions etc.) are needed in order to compile BABL, GEGL and GIMP. You can install the most important packages using this command:

sudo apt-get build-dep gimp

This command installs all libraries and packages that are needed to compile the GIMP version shipped with Ubuntu (= GIMP 2.6). Because the dependencies of GIMP 2.6 and 2.7 are mostly identical, the most important libraries are installed now. However, you have to install these additional packages:

sudo aptitude install libtool ruby

Then you can compile and install BABL, GEGL and GIMP:

cd babl
./autogen.sh —prefix=/opt/gimp-2.7
nice make -j3
# 3 instances, suggestion: number of CPUs+1
*sudo make install

cd ../gegl
./autogen.sh —prefix=/opt/gimp-2.7
nice make -j3
sudo make install

cd ../gimp
./autogen.sh —prefix=/opt/gimp-2.7
nice make -j3
sudo make install*

Now GIMP 2.7 should be installed. You can launch it with /opt/gimp-2.7/bin/gimp – have fun!

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.

New comments are disabled because of spam.

dexluther
over 14 years ago

dexluther@Lucy:~/tmp$ git clone git://git.gnome.org/gimp
Initialized empty Git repository in /home/dexluther/tmp/gimp/.git/
remote: Counting objects: 310268, done.
remote: Compressing objects: 100% (46689/46689), done.
remote: Total 310268 (delta 268524), reused 304021 (delta 263012)
Receiving objects: 100% (310268/310268), 163.27 MiB | 651 KiB/s, done.
fatal: index-pack failed80478/268524)

Rave[N]
over 14 years ago

I've followed this tutorial a few weeks ago and it worked like a charm. unfortunately I had reinstall my Kubuntu 9.04. When I tried to follow the same installation tutorial again - Gimp is complaining that GTK+ is not installed ant that it requires GTK+ version 2.16.6 and above.
Gimp INSTALL file states that it only needs GTK+ 2.16.1 to compile, which is what I have installed.
I've tried replacing all "2.16.6" values with "2.16.1" in the configure file to no avail.
Any ideas how to go round it?

gimp_user
over 14 years ago

checking for _NL_MEASUREMENT_MEASUREMENT... yes
./configure: line 23939: syntax error near unexpected token `0.40.1'
./configure: line 23939: `IT_PROG_INTLTOOL(0.40.1)'

Configure failed or did not finish!

How can this be fixed ?

mamboze member for about 15 years mamboze 15 comments
over 14 years ago

Thanx redforce. I compiled 2.7 a couple of days ago. No problem at all. It looks good.

23dornot23d member for over 14 years 23dornot23d 10 comments
over 14 years ago

The command to run GIMP 2.7 should be full name ....
if running more than one version ....

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

23dornot23d
over 14 years ago

7. Popolon ... excellent .... that was the same and only problem mine came up with too ... great work .... good answer ... cheers ...

mamboze member for about 15 years mamboze 15 comments
over 14 years ago

Downloading last night was very slow so I used 2 console windows. Mistake!!

I'll have another go today, thanks

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

You have to compile the newest BABL first. Don't forget the exports at the beginning and use the same console (window) for all commands.

mamboze member for about 15 years mamboze 15 comments
over 14 years ago

While compiling, I got this error message:
checking for BABL... configure: error: Package requirements (babl >= 0.1.0) were not met:

Requested 'babl >= 0.1.0' but version of babl 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 BABL_CFLAGS
and BABL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Configure failed or did not finish!

Is babl 0.1.0 (or higher) available?

Popolon
over 14 years ago

A dependence is missing, when you try to compile gimp itself (babl & gegl are OK), add the folling line (or packages in previou slines
sudo apt-get install gtk-doc-tools

raphi
almost 15 years ago

rbp: >ou can check it easily when you cd to the ~/tmp/gimp (as mentioned above) and type in 'git log'.

regards,
raphi

rbp
almost 15 years ago

Is there some way to see the changes in each new release? I don't really know how to use git. The 'changelog' file isn't updated anymore.

thanks

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

You can see the tutorial here: http://www.gimptalk.com/forum/compile-latest-gimp-source-developer-version-for-ubuntu-9--t39598.html
or here: http://www.flickr.com/groups/gimpusers/discuss/72157617207532628/

There Martin H. pointed out that it may be useful to use "sudo checkinstall" instead of "sudo make install" so the installed files become registered by the package manager. Good idea, even if you can easily remove GIMP by deleting /opt/gimp-2.7 even without packages

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

Maybe you don't need all the history revisions but only the current soure code. Then you can do

git clone --depth 1 git://git.gnome.org/gimp

which should be smaller.

git question
almost 15 years ago

why is the source of the master branch so big? doesn't have gimp around 20 mb?

thanks
almost 15 years ago

thank you for keeping us up-to-date with the changes in the gip compilation process!