个人工具

UbuntuHelp:GIMP2.4-on-Feisty

来自Ubuntu中文

跳转至: 导航, 搜索

GIMP 2.4 on Ubuntu Feisty Fawn

Introduction

GIMP 2.4 came out a few days ago, as of the 26th of October 2007, and I decided, hey, I really want that. Unfortunately, I was informed over IRC it probably would not be coming to Feisty Fawn's repositories, even though it hit Gutsy's a few days ago. I decided that was a little mean and began hoping it would just take a while. Either way, it left me with three choices, build it myself, upgrade, or cross my fingers and wait. I decided to attempt to compile.

Preperation

You will also need approximately 88 megabytes of packages, and all the repositories enabled for safe measure. It's good practice to sudo apt-get update before all of the installing as well. The command I ran to install the GIMP's dependencies is as follows:

sudo apt-get install 
build-essential subversion make gcc libglib2.0-dev libgtk2.0-dev intltool automake1.9 libtool gtk-doc-tools g++-3.3 libart-2.0-dev libtiff4-dev libexif-dev libxmu-dev libjpeg62-dev libmng-dev libpng12-dev librsvg2-dev libgutenprintui2-dev libaa1-dev python2.5-dev python-gtk2-dev libaa1-dev libxpm-dev libwmf-bin libwmf-dev libgtkhtml2-dev

Which, dependencies and all, prompted me if I was ready to install these packages:

autoconf automake1.7 automake1.9 autotools-dev cpp-3.3 docbook docbook-dsssl
docbook-to-man docbook-xsl g++-3.3 gcc-3.3 gnome-common gtk-doc-tools
intltool jade libaa1-dev libart-2.0-dev libbz2-dev libcroco3-dev libexif-dev
libgail-dev libgnomecanvas2-dev libgsf-1-dev libgtk2.0-dev libgtkhtml2-dev
libgutenprintui2-dev liblcms1-dev libmng-dev libncurses5-dev libpopt-dev
librsvg2-dev libslang2-dev libsp1c2 libstdc++5-3.3-dev libtool libwmf-bin
libwmf-dev libxcursor-dev libxext-dev libxfixes-dev libxi-dev
libxinerama-dev libxml2-dev libxmu-dev libxmu-headers libxpm-dev
libxrandr-dev libxt-dev m4 python-gobject-dev python-gtk2-dev python2.5-dev
sp x11proto-fixes-dev x11proto-randr-dev x11proto-xext-dev

After installing all of this, I tried to run the GIMP's configure script with:

cd gimp-2.4.0
./configure

It ran for a small eternity, and eventually tripped up when trying to configure the test GTK+ program. I thought, "touche, GIMP, but I have tricks as well!", and ran the script like this: ./configure --disable-gtktest It worked, kind of. It did disable the test GTK+ program (which is made to ensure GTK+ is stable and running on your system), HOWEVER, it then just stumbled over the fact that I don't have GTK+-2.10.13 or newer, and stopped configuring. YOU NEED GTK+-2.10.13 OR NEWER Unless of course you can find a pre-built package, or you're on Gutsy Gibbon, you'll need to build a version of GTK+ yourself. This guide is for Feisty, though. While you're at it, I might as well mention that GTK will not compile without recent versions of the pango or glib libraries, as seen by this text (which rolled across my screen trying to ./configure GTK+-2.12.0):

checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.13.5    atk >= 1.9.0    pango >= 1.17.3    cairo >= 1.2.0) were not met:

Requested 'glib-2.0 >= 2.13.5' but version of GLib is 2.12.11
Requested 'pango >= 1.17.3' but version of Pango is 1.16.2

You can find all of this at ftp://ftp.gtk.org/pub/ Use the installation instructions provided inside each of the tarballs to configure and compile each of these libraries. It will be a daunting task, not apt for the light-hearted. At this point, I quit. If you follow through all of this, please contribute your experiences here. Once you have compiled and installed newer versions of Pango and GLib, the newer version of GTK+ should configure and install correctly as well. Hooray. Beware, I was never properly informed, and I still don't know, if installing the newer versions of each library would overwrite the old ones and *possibly* cause compatibility issues

Compiling

Once you have everything set up, just run the configure script inside GIMP's 2.4 folder. Inside the INSTALL file is extra information on compiling, and a very handy list of options you can use in the configure command, such as --with-desktop-dir=[/path/to/the/directory/you/want/gimp/to/use/such/as/~/.gimp-2.2] (The default is ~/.gimp-2.4)

The standard procedure to all of this, is, of course
./configure
make
sudo make install

BE WARNED, that the new version of GIMP will overwrite old libraries, which will, in turn, lead to older versions of The GIMP trying to use the newer libraries, which could lead to instability. If you need to keep the older versions, consider running ./configure as something like ./configure --prefix=/PATH/TO/NEW/INSTALL/DIRECTORY