RVM 运行"requirements_smf_libs_install自动制作库工具"时出错,



我正在尝试添加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医生清洁。最奇怪的是automake和libtool已经通过Brew安装了。看起来这是一个问题,RVM有,但据说是固定的:https://github.com/wayneeseguin/rvm/issues/1803,也许不是为这个特定的红宝石宝石?

解决了这个问题,我从http://www.railsinstaller.org/上重新安装了这个包,它自动安装了1.9.3-p392

似乎实际的问题是宏AM_SILENT_RULES没有在您正在使用的autoconf上定义。你可以通过添加

来解决这个问题
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
configure.ac
中使用宏的行之前的

最新更新