【问题标题】:Trying to run faac's bootstrap script but running into errors尝试运行 faac 的引导脚本但遇到错误
【发布时间】:2010-09-11 13:49:34
【问题描述】:

我正在尝试安装 faac,但遇到了错误。以下是我在尝试构建它时遇到的错误:


[root@test faac]# ./bootstrap  
configure.in:11: warning: underquoted definition of MY_DEFINE
run info '(automake)Extending aclocal'  
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal  
aclocal:configure.in:17: warning: macro `AM_PROG_LIBTOOL' not found in library  
common/mp4v2/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined  
common/mp4v2/Makefile.am:5:   
common/mp4v2/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'  
common/mp4v2/Makefile.am:5: to `configure.in' and run `aclocal' and `autoconf' again.  
libfaac/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined  
libfaac/Makefile.am:1:   
libfaac/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'  
libfaac/Makefile.am:1: to `configure.in' and run `aclocal' and `autoconf' again.  
configure.in:17: error: possibly undefined macro: AM_PROG_LIBTOOL  
If this token and others are legitimate, please use m4_pattern_allow.  
See the Autoconf documentation.  

有人知道这是什么意思吗?我找不到任何关于这个的东西,所以我想我会问你们。感谢您的帮助。

编辑: 这是我的 linux、libtool、automake 和 autoconf 版本:

[root@test faac]# libtool --version
ltmain.sh (GNU libtool) 2.2
Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996

Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@test faac]# autoconf --version
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@test faac]# automake --version
automake (GNU automake) 1.9.2
Written by Tom Tromey <tromey@redhat.com>.

Copyright 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@test faac]# cat /etc/redhat-release 
Red Hat Enterprise Linux WS release 4 (Nahant)

【问题讨论】:

    标签: linux build autotools bootstrapping


    【解决方案1】:

    我认为首先要检查的是您是否安装了 libtool。

    编辑:

    这是我在 Ubuntu 8.04 上得到的:

    $ ./bootstrap 
    configure.in:11: warning: underquoted definition of MY_DEFINE
    configure.in:11:   run info '(automake)Extending aclocal'
    configure.in:11:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
    configure.in:4: installing `./install-sh'
    configure.in:4: installing `./missing'
    common/mp4v2/Makefile.am: installing `./depcomp'
    
    $ libtool --version
    ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 2008/02/01 16:58:18)
    
    Copyright (C) 2008  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    $ autoconf --version
    autoconf (GNU Autoconf) 2.61
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software.  You may redistribute copies of it under the terms of
    the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
    There is NO WARRANTY, to the extent permitted by law.
    
    Written by David J. MacKenzie and Akim Demaille.
    
    $ automake --version
    automake (GNU automake) 1.10.1
    Copyright (C) 2008 Free Software Foundation, Inc.
    License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.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 Tom Tromey <tromey@redhat.com>
           and Alexandre Duret-Lutz <adl@gnu.org>.
    

    【讨论】:

    • 我相信我这样做是因为我使用 whereis 命令进行了检查:[root@test faac]# whereis libtool libtool: /usr/bin/libtool /usr/local/bin/libtool [root@test faac ]# whereis libtoolize libtoolize: /usr/bin/libtoolize /usr/local/bin/libtoolize
    【解决方案2】:

    所以你的问题是 automake/conf 不知道 libtool。

    您需要重新安装所有这些。要么全部来自源代码,要么全部来自二进制包。 如果从源安装,请确保它们都安装到同一位置。

    【讨论】:

      【解决方案3】:

      也许您的 automake 出于某种原因不知道您的 libtool。看起来您已经安装了两个 libtool 副本,这可能会造成混淆。

      也许您应该删除这两个副本,以及所有 automake、autoconf 安装,然后重新安装它们(可能来自源代码?)。

      我想第一步是找出工具的活动副本的位置:

      which libtool
      which automake
      which autoconf
      

      【讨论】:

      • 我有一个从 /usr/local/bin 中的 libtool 到 usr/bin 的符号链接。以下是上述命令的结果: [root@test ~]# which libtool /usr/local/bin/libtool [root@test ~]# which automake /usr/bin/automake [root@test ~]# which autoconf / usr/bin/autoconf
      【解决方案4】:

      听起来 autoconf/automake 找不到libtool.m4,因此无法解析宏AM_PROG_LIBTOOL。在您的 libtool 安装下查找此文件并将其复制/链接到 /usr/share/aclocal/ 下。

      【讨论】:

        猜你喜欢
        • 2022-11-11
        • 2019-02-23
        • 2020-07-06
        • 2022-10-16
        • 1970-01-01
        • 1970-01-01
        • 2020-11-05
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多