[英]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之外的原始帖子 。
我不明白該怎么辦。
遇到了同樣的問題。 我所做的是:
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.