2012-09-05 32 views
2

我的系統是基於centos的。爲什麼我無法用autoconf2.6x構建autoconf,其版本比2.6更新

我嘗試建立autoconf的原因是,有人告訴我,我可以嘗試建立它是爲了解決其他問題,您可以通過以下鏈接why autogen.sh failed even with the correct autoconf?

[[email protected] auto]$ cd autoconf/ 
[[email protected] autoconf]$ ls 
AUTHORS cfg.mk  ChangeLog.3  COPYINGv3 lib   man   README-hacking 
bin  ChangeLog.0 configure.ac  doc   m4   NEWS   tests 
BUGS  ChangeLog.1 COPYING   GNUmakefile maint.mk  README  THANKS 
build-aux ChangeLog.2 COPYING.EXCEPTION HACKING  Makefile.am README-alpha TODO 
[[email protected] autoconf]$ autoreconf -iv 
autoreconf: Entering directory `.' 
autoreconf: configure.ac: not using Gettext 
autoreconf: running: aclocal -I m4 
configure.ac:20: error: Autoconf version 2.60 or higher is required 
configure.ac:20: the top level 
autom4te: /usr/bin/m4 failed with exit status: 63 
aclocal: autom4te failed with exit status: 63 
autoreconf: aclocal failed with exit status: 63 

找到動機//我有autoreconf2.6x在我的系統上,其版本si高於2.6,但仍然無法構建,爲什麼?

[[email protected] autoconf]$ autore 
autoreconf  autoreconf2.59 autoreconf2.6x autorespond 
[[email protected] autoconf]$ autore 
autoreconf  autoreconf2.59 autoreconf2.6x autorespond 
[[email protected] autoconf]$ autoreconf2.6x -iv 


[[email protected] autoconf]$ autoconf2.6x --version 
autoconf (GNU Autoconf) 2.63 
Copyright (C) 2008 Free Software Foundation, Inc. 
License GPLv2+: GNU GPL version 2 or later 
<http://gnu.org/licenses/old-licenses/gpl-2.0.html> 
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law. 

Written by David J. MacKenzie and Akim Demaille. 

仍然無法構建autoconf,我應該怎麼做才能構建它?

[[email protected] autoconf]$ ./configure 
bash: ./configure: No such file or directory 
[[email protected] autoconf]$ autoconf 
configure.ac:29: error: possibly undefined macro: AM_INIT_AUTOMAKE 
     If this token and others are legitimate, please use m4_pattern_allow. 
     See the Autoconf documentation. 
configure.ac:117: error: possibly undefined macro: AC_PROG_GNU_M4 
configure.ac:124: error: possibly undefined macro: AM_MISSING_PROG 
configure.ac:187: error: possibly undefined macro: AM_PATH_LISPDIR 
configure.ac:201: error: possibly undefined macro: AC_PROG_MAKE_CASE_SENSITIVE 
[[email protected] autoconf]$ autoconf2. 
autoconf2.59 autoconf2.6x 
[[email protected] autoconf]$ autoconf2.6x 

[[email protected] autoconf]$ ./configure --prefix=$HOME/ins/ins_auto 


[[email protected] autoconf]$ autoreconf2.6x 
configure.ac:20: error: Autoconf version 2.60 or higher is required 
configure.ac:20: the top level 
autom4te: /usr/bin/m4 failed with exit status: 63 
aclocal: autom4te failed with exit status: 63 
autoreconf2.6x: aclocal failed with exit status: 63 
+0

請查看http://www.gentoo.org/proj/en/qa/autofailure.xml – Satish

+0

爲什麼運行autoreconf?我認爲'cd autoconf'表明你處於autoconf的解壓縮tarball。只需運行配置腳本。你在這裏遇到了和以前一樣的問題;您的系統已設置爲autoreconf正在查找並運行舊的autoconf。 –

+0

@WilliamPursell我已經回覆了上面的更多細節,仍然失敗... – hugemeow

回答

0

您必須安裝的autoconf的兩個版本,當aclocal運行autom4te,這將啓動舊的。你的路上有autom4te-2.6x嗎?如果是,請在運行autoreconf-2.64之前設置export AUTOM4TE=autom4te2.6x

相關問題