【发布时间】:2016-10-04 20:09:51
【问题描述】:
我检查了http://railsapps.github.io/installrubyonrails-mac.html 的列表,试图重新安装 Rails,并且在过去 2 个多小时内一直在尝试更新它。
这是我在终端得到的:
Stevens-MBP:Desktop Steven$ rvm install ruby-2.3.1
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.3.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
==> Upgrading 1 outdated package, with result:
automake 1.15
Error: You must `brew link autoconf` before automake can be installed
Requirements installation failed with status: 1.
这里是附加信息:
Stevens-MBP:Desktop Steven$ rails -v
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
Stevens-MBP:Desktop Steven$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]
Stevens-MBP:Desktop Steven$
当我输入 sudo gem install rails 时,我得到:
ERROR: Error installing rails:
activesupport requires Ruby version >= 2.2.2.
【问题讨论】:
-
错误信息告诉你在升级automake之前运行
brew link autoconf。你这样做了吗? -
你可以试试 rvm install 2.3.1 吗?我觉得我几个月前就以这种方式安装了那个版本
-
@infused 你说得对。在我运行“brew link autoconf”之后,一切都安装得很顺利。我什至终于能够安装 2.3.1。谢谢你。不敢相信我错过了那一小部分。
标签: ruby-on-rails ruby ruby-on-rails-4 homebrew activesupport