
Ubuntu 11.04 box.iに開発バージョンgimp2.7.2をインストールしようとしています。これらの指示同じように、babl を作成する手順でエラーが発生しました。
sudo make
make all-recursive
make[1]: Entering directory `/home/abc/gimp2.7/gimp-2.7.2/babl'
Making all in babl
make[2]: Entering directory `/home/abc/gimp2.7/gimp-2.7.2/babl/babl'
Making all in base
make[3]: Entering directory `/home/abc/gimp2.7/gimp-2.7.2/babl/babl/base'
CC babl-base.lo
libtool: Version mismatch error. This is libtool 2.4 Debian-2.4-2, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4 Debian-2.4-2
libtool: and run autoconf again.
make[3]: *** [babl-base.lo] Error 63
make[3]: Leaving directory `/home/abc/gimp2.7/gimp-2.7.2/babl/babl/base'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/abc/gimp2.7/gimp-2.7.2/babl/babl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/abc/gimp2.7/gimp-2.7.2/babl'
make: *** [all] Error 2
エラー行は
libtool: Version mismatch error. This is libtool 2.4 Debian-2.4-2,but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4 Debian-2.4-2
libtool: and run autoconf again.
libtool 2.4のマクロでaclocal.m4を再作成するにはどうすればよいですか?
答え1
走ってみる
autoreconf
./configure
make
プロジェクトのルートディレクトリにあります。
それでも問題が解決しない場合は、make maintainer-clean
まず実行してから手順 1 に進みます。
それでも問題が解決しない場合は、 を実行しmake maintainer-clean
、プロジェクトのルート ディレクトリにある生成されたすべてのファイル ( 、aclocal.m4
任意のm4
ディレクトリ、任意のautom4te.cache
ディレクトリ、configure
、Makefile.in
、config.h
、config.h.in
、config.status
、など) を削除しますlibtool
。ltmain.sh
その後、手順 1 に進みます。
ユーザーからmspoerr私たちの友人のところでスタックオーバーフロー。
答え2
Gentoo ではこれが機能します:
$ phpize
$ aclocal && libtoolize --force && autoreconf
$ ./configure bbbb#again
Ubuntu でも動作するかもしれません。
答え3
私も同じ問題に直面しましたが、解決策は非常に簡単でした。
BABL_CFLAGS
インストール先のパスを含む環境変数をエクスポートするだけですバブル。
export BABL_CFLAGS=/opt/babl-0.1.10
自分のものを入れるだけバブルパスをインストールすると、問題なく動作します。