BABL:使用 libtool 2.4 中的巨集重新建立 aclocal.m4

BABL:使用 libtool 2.4 中的巨集重新建立 aclocal.m4

我正在嘗試在我的 Ubuntu 11.04 盒子上安裝開發版本 gimp2.7.2。這些說明同樣的。

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目錄、configureMakefile.inconfig.hconfig.h.inconfig.statuslibtoolltmain.sh等,然後執行步驟1。

來自使用者姆斯波爾在我們的朋友那裡堆疊溢位

答案2

在 Gentoo 中,這是有效的:

$ phpize 
$ aclocal && libtoolize --force && autoreconf
$ ./configure bbbb#again

也可能在 Ubuntu 中工作。

答案3

我遇到了同樣的問題,解決方案非常簡單:

只需匯出環境變數BABL_CFLAGS以及安裝路徑即可巴布爾。就我而言,我使用了:

export BABL_CFLAGS=/opt/babl-0.1.10

就放自己的巴布爾路徑安裝,它會為你工作得很好!

相關內容