运行“requirements_smf_libs_install automake libtool”的 RVM 错误,
Posted
技术标签:
【中文标题】运行“requirements_smf_libs_install automake libtool”的 RVM 错误,【英文标题】:RVM Error running 'requirements_smf_libs_install automake libtool', 【发布时间】:2013-04-23 22:14:32 【问题描述】:我正在尝试添加ruby-1.9.3-p392
的安装,并且在安装过程中安装所需的包automake、libtool时,我得到以下信息:
Error running 'requirements_smf_libs_install automake libtool',
please read /usr/local/rvm/log/ruby-1.9.3-p392/1366754296_package_install_automake_libtool.log
日志文件如下所示:
[2013-04-23 15:42:42] requirements_smf_libs_install
[ ] automake 1.13.1 ~ dependencies...
[[32m✔[0m] automake 1.13.1 ~ dependencies
[ ] automake 1.13.1 ~ fetch...
[[32m✔[0m] automake 1.13.1 ~ fetch
[ ] automake 1.13.1 ~ patch...
[[32m✔[0m] automake 1.13.1 ~ patch
[ ] automake 1.13.1 ~ preconfigure... configure.ac:24: warning: macro `AM_SILENT_RULES' not found in library
configure.ac:372: warning: macro `AM_SUBST_NOTMAKE' not found in library
configure.ac:24: error: possibly undefined macro: AM_SILENT_RULES
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:377: error: possibly undefined macro: AM_SUBST_NOTMAKE
autoreconf: /opt/sm/pkg/versions/autoconf/2.69/bin/autoconf failed with exit status: 1
[[32m✔[0m] automake 1.13.1 ~ preconfigure
[ ] automake 1.13.1 ~ configure... ERROR(__sm.package.error):
Configuration of automake 1.13.1 failed.
Tail of configure.log:
./configure: line 2006: syntax error near unexpected token `yes'
./configure: line 2006: `AM_SILENT_RULES(yes)'
我在 Mac OSX Lion 上,安装了 HomeBrew 并 brew doctor clean。最奇怪的是 automake 和 libtool 已经通过 Brew 安装了。看起来这是 RVM 遇到的一个问题,但据说已修复:https://github.com/wayneeseguin/rvm/issues/1803,也许不适用于这个特定的 ruby gem?
【问题讨论】:
【参考方案1】:解决了这个问题,我刚刚从http://www.railsinstaller.org/的包重新安装,它自动安装了1.9.3-p392
【讨论】:
在问题页面上他的评论还说尝试rvm autolibs homebrew
【参考方案2】:
看来实际的问题是宏AM_SILENT_RULES
没有在您使用的autoconf 上定义。
您可以通过添加
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
就在configure.ac
中使用宏的行之前
【讨论】:
以上是关于运行“requirements_smf_libs_install automake libtool”的 RVM 错误,的主要内容,如果未能解决你的问题,请参考以下文章