【问题标题】:autoreconf failed when compiling fribidi编译 fribidi 时 autoreconf 失败
【发布时间】:2018-12-19 03:53:50
【问题描述】:

我用来编译的命令是

./bootstrap

结果是:

Usable autoreconf found, running    
main::scan_file() called too early to check prototype at 
/usr/local/bin/aclocal line 617.
aclocal: couldn't open directory `m4': No such file or directory
autoreconf: aclocal failed with exit status: 1

通过跟踪bootsrap,我发现这些错误是由以下原因引起的:

autoreconf     --force --install

autoreconf 版本是:

autoreconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, 
<http://gnu.org/licenses/exceptions.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

谁能帮我解决这个问题。

【问题讨论】:

  • latest fribidi release 缺少 bootstrap 命令,那么您要构建哪个版本?
  • 另外,失败的是aclocal(autoreconf 正在调用aclocal):那么您的aclocal 版本是什么?
  • @umläute,你是对的,问题是由 aclocal 版本引起的,我已经修复了。谢谢

标签: compilation autoconf automake


【解决方案1】:

实际错误由aclocal 引发(由autoreconf 调用)。

aclocal 的最新版本应该可以很好地处理这个问题,因此请检查您的 aclocal-version(或者:您是否实际运行了正确的 aclocal-binary)

或者,您可以简单地在您的构建目录中创建一个(空的)m4/ 目录。

可以说这(确保m4/ 目录的存在)应该由bootstrap 脚本处理,但是:

  • current fribidi 已放弃自动工具,转而支持meson(尽管它仍然支持autotools)

  • fribidi 带有一个非空的m4 目录已经有一段时间了。

  • afaict,使用autotools 并且缺少m4/ 目录的fribidi 的最后一个版本是0.19.7(大约在2015-08 发布)

所以:请使用任何库的最新和最好的(稳定)版本。如果不能,您应该在问题描述中明确说明,并注意您要编译的版本。

【讨论】:

    猜你喜欢
    • 2011-08-16
    • 2015-02-04
    • 2021-10-07
    • 2018-04-26
    • 2014-03-10
    • 2012-11-23
    • 1970-01-01
    • 1970-01-01
    • 2013-05-12
    相关资源
    最近更新 更多