我检查名单http://railsapps.github.io/installrubyonrails-mac.html试图重新安装Rails和一直在试图更新它的最后2+小时。无法更新红宝石导致Rails的错误
这是我得到的终端:
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'。是你做的吗? – infused
可你只是尝试RVM安装2.3.1?我觉得我几个月前就安装了这个版本 –
@infused你说得对。在我运行“brew link autoconf”之后,所有的东西都安装得很顺利。我甚至能够最终安装2.3.1。谢谢。不能相信我错过了那小部分。 –