そろそろあちこちから紅葉の便りが届くようになり、
自分の方向オンチの原因を考えるに、
さて、
GIMP 2.4のパッケージ化
GIMPはGNU Image Manipulation Programの略で、
たとえば、
他のディストリビューション同様、
ソースコードの展開とドキュメントの確認
ソースコードをダウンロードして展開すると、
AUTHORS Makefile.in authors.dtd cursors/ gimpthumb.pc.in libgimpbase/ menus/ po-tips/
COPYING NEWS authors.xml data/ gimptool-2.0.in libgimpcolor/ missing* py-compile*
ChangeLog NEWS.pre-2-0 authors.xsl depcomp* gimptool-win32.c.in libgimpconfig/ mkinstalldirs* regexrepl/
ChangeLog.pre-1-0 NEWS.pre-2-2 compile* desktop/ gimpui.pc.in libgimpmath/ modules/ themes/
ChangeLog.pre-1-2 README config.guess* devel-docs/ gtk-doc.make libgimpmodule/ plug-ins/ tools/
ChangeLog.pre-2-0 README.i18n config.h.in docs/ install-sh* libgimpthumb/ po/
HACKING README.win32 config.h.win32 etc/ intltool-extract.in libgimpwidgets/ po-libgimp/
INSTALL acinclude.m4 config.sub* gimp-zip.in* intltool-merge.in ltmain.sh po-plug-ins/
LICENSE aclocal.m4 configure* gimp.pc.in intltool-update.in m4macros/ po-python/
Makefile.am app/ configure.in gimpdefs.msc libgimp/ makefile.msc po-script-fu/
ざっと展開されたファイル類を眺めると、
READMEファイル
最近のソフトウェアでは、
The GNU Image Manipulation Program Version 2.4
----------------------------------------------
GIMP 2.4 replaces earlier GIMP 2.x versions. It is advised that you
uninstall them before installing GIMP 2.4. If you want to keep your
older GIMP 2.x installation in parallel to GIMP 2.4, you have to
choose a separate prefix which is not in your default library search
...
文書の位置付けや著者のスタイルなどを把握するために最初の数パラグラフはじっくりと読んだ方がいいので、
NEWSファイル
次は、
INSTALLファイル
次に開いたのはINSTALLファイルです。ソフトウェアによっては、
Installation instructions for GIMP 2.4
--------------------------------------
There are some basic steps to building and installing GIMP.
GIMP 2.4 replaces earlier GIMP 2.x versions. It is advised that you
uninstall them before installing GIMP 2.4. If you want to keep your
older GIMP 2.x installation in parallel to GIMP 2.4, you have to
...
この文書も最初に過去のバージョンを削除するべきことが書かれています。READMEだけでなく、
******************************************************************
* Unless you are experienced with building software from source, *
* you should not attempt to build all these libraries yourself! *
....
このような部分は著者がとくに注意を喚起したいと思って書いているので、
この先は箇条書きになっていることに気づきましたので、
1. You need to have installed a recent version of pkg-config available
...
2. You need to have installed GTK+ version 2.10.13 or newer. GIMP
...
3. We require PangoFT2, a Pango backend that uses FreeType2. Make
...
ざっと見、
この先には
Generic instructions for configuring and compiling auto-configured
packages are included below. Here is an illustration of commands that
...
% tar xvfz gimp-2.4.x.tar.gz # unpack the sources
% cd gimp-2.4.x # change to the toplevel directory
% ./configure # run the `configure' script
...
といった実際の手順を記した部分がありましたが、
The `configure' script examines your system, and adapts GIMP to run on
it. The script has many options, some of which are described in the
...
このあたりからconfigureスクリプトの実際の操作方法を記しているようなので、
--enable-shared and --disable-shared. This option affects whether
shared libraries will be built or not. Shared libraries provide
...
これらはconfigureを実行する際に指定可能なオプションの列挙で、
ディストリビュータという立場上、
--enable-binreloc. When compiled for Linux with this option enabled,
GIMP will be binary relocatable. Plug-ins and data files will
...
説明の中にLinuxという単語があるので丁寧に読んでみたところ、
--with-sendmail=[PATH]. This option is used to tell GIMP where to find
...
うーむ…、
The `make' command builds several things:
- A bunch of public libraries in the directories starting with 'libgimp'.
- The plug-in programs in the 'plug-ins' directory.
...
このあたりからmakeを実行した時の動作の説明になっているようなので、
When ./configure fails
======================
'configure' uses pkg-config, a tool that replaces the old foo-config
...
このあたりからはconfigureスクリプトがエラーになった際の対応方法が書かれているようです。最初に pkg-config が無かった際の入手先があり、
configure スクリプトの実行
こういった感じで README, NEWS, INSTALL の3つのドキュメントを5分程度で読み終えてから、
kojima@xeon:~/Gimp/gimp-2.4.0$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes ... checking for FONTCONFIG... yes checking for PANGOFT2... no configure: error: Test for PangoFT2 failed. *** We require Pango with the optional support for FreeType2 compiled in. *** See the file 'INSTALL' for more help.
おっと、
3. We require PangoFT2, a Pango backend that uses FreeType2. Make
sure you have FreeType2 and fontconfig installed before you
compile Pango. FreeType2 can be downloaded from
...
FreeType2ライブラリに対応したPango(PangoFT2)ライブラリが必要だとのことですが、
config.
configure:28420: checking for PANGOFT2
configure:28428: $PKG_CONFIG --exists --print-errors "pangoft2 >= 1.12.2"
Requested 'pangoft2 >= 1.12.2' but version of Pango FT2 is 1.10.2
configure:28431: $? = 1
...
configure:28481: error: Test for PangoFT2 failed.
*** We require Pango with the optional support for FreeType2 compiled in.
*** See the file 'INSTALL' for more help.
この結果を見ると、
wants Pango (>= 1.12.2). Sources for these can be grabbed from
ftp://ftp.gtk.org/.
などとありました。どうやらpangoの新しいバージョンを作成することが先なようです。そこでGIMP 2.
その後の展開
pangoをパッケージ化してインストールした後、
今回の例を見るだけでは、
たとえて言うならば、
問題の迷路で迷子にならないためには、