1

我正在尝试添加一个安装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?

4

2 回答 2

1

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

于 2013-04-24T03:19:44.520 回答
0

看来实际问题是AM_SILENT_RULES您使用的 autoconf 上没有定义宏。你可以通过添加来解决这个问题

m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])

就在使用宏的行之前configure.ac

于 2014-02-23T11:30:37.770 回答