繁体   English   中英

使用Homebrew在Octave安装过程中出现Autoconf版本错误

[英]Autoconf version error during Octave installation with Homebrew

我正在尝试在MacBook Pro 10.6.8上使用Homebrew安装Octave。 这是安装日志:

asz /usr/share/autoconf/autoconf > brew install octave
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://ftpmirror.gnu.org/octave/octave-3.6.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/octave-3.6.4.tar.bz2
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file configure.ac
Hunk #1 succeeded at 1605 (offset 2 lines).
==> autoreconf -ivf
configure.ac:45: error: Autoconf version 2.62 or higher is required
configure.ac:45: the top level
autom4te: /usr/bin/gm4 failed with exit status: 63
aclocal: /usr/bin/autom4te failed with exit status: 63
autoreconf: aclocal failed with exit status: 63

如您所见,它抱怨autoconf的版本太低。 但是我确实用brew安装了更高版本的autoconf

asz ~ > autoconf --version
autoconf (GNU Autoconf) 2.69
(...)

我确实将PATH更新为指向此新版本的autoconf,

旧的autoconf位于:

asz ~ > which autoconf
/usr/bin/autoconf

新的是在:

asz ~ > which autoconf
/usr/local/Cellar/autoconf/2.69/bin/autoconf

但Homebrew仍然看不到它(相同的错误)。 在寻找解决方案时,我发现此提示是对类似问题的引用:

这来自aclocal的运行,这是automake的一部分。 aclocal不会调用autoconf二进制文件,因此autoconf所在的路径无关紧要。 不过,它确实查看了m4宏,而且我猜想它在/ usr / share中找到了autoconf宏,这对应于系统autoconf(在osx上为2.61) 链接到Stackoverflow之外的原始帖子

我不明白该怎么办。

  • 您能告诉我如何更新这些宏以指向新的autoconf吗?
  • 还有其他方法可以使autoconf工作吗?
  • 我可以为您提供哪些其他信息来帮助诊断问题?

遇到了同样的问题。 我所做的是:

cd / usr / share mv autconf autoconf.old ln -s / usr / local / share / autoconf。

现在问题不再是版本,而是其他一些变量:4 / libtool.m4:827:_LT_LANG_DEFAULT_CONFIG从... configure.ac:48扩展:错误:可能是未定义的宏:AM_SILENT_RULES如果此令牌和其他令牌是合法的,请使用m4_pattern_allow。 请参阅Autoconf文档。 autoreconf:/ usr / bin / autoconf失败,退出状态:1

将会看到下一搜索阶段的结果

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM