我正在尝试在Mac OS Sierra(10.13.3)计算机上运行 Ruby on Rails项目.当我导航到Rails文件夹时,RVM告诉我以下内容: Required ruby-1.9.3-p392 is not installed.To install do: 'rvm install "ruby-1.9.3-p392"' 但是,当我
Required ruby-1.9.3-p392 is not installed. To install do: 'rvm install "ruby-1.9.3-p392"'
但是,当我安装时,我得到以下内容:
$rvm install "ruby-1.9.3-p392" Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.13/x86_64/ruby-1.9.3-p392. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Installing requirements for osx. Updating system.......... Installing required custom packages: homebrew/versions. Error running 'requirements_osx_brew_install_custom homebrew/versions', please read /Users/petercormack/.rvm/log/1518211184_ruby-1.9.3-p392/install_custom.log Requirements installation failed with status: 1.
当我查看该日志文件时,我看到以下内容:
[2018-02-09 12:36:30] requirements_osx_brew_install_custom requirements_osx_brew_install_custom () { \typeset __tap; for __tap in "$@"; do brew tap "${__tap}" || return $?; done } current path: /Users/petercormack/podcastsi18n PATH=/usr/local/opt/qt@5.5/bin:/Users/petercormack/.node/bin:/usr/local/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/petercormack/.rvm/bin:/usr/local/Cellar/openssl/1.0.2j/bin/openssl command(2): requirements_osx_brew_install_custom homebrew/versions + typeset __tap + for __tap in '"$@"' + brew tap homebrew/versions Error: homebrew/versions was deprecated. This tap is now empty as all its formulae were migrated. + return 1
所以. RVM似乎坚持这种安装自制软件/版本的想法,这已被Homebrew完全删除.我已经更新了Homebrew.我已经更新了RVM.我试图欺骗Homebrew让这个水龙头可用(不成功).我试图欺骗RVM认为这不是一个必需的自定义包(无法弄清楚如何).似乎没有什么工作.救命!
编辑
我通过实际升级项目来使用ruby-2.1.0解决了这个问题.工作就像一个魅力,但当然并没有真正解决原始问题.感谢下面的答案,希望他们能在同样的情况下帮助其他一些可怜的灵魂!
我也绊倒了这个.虽然在Github的善良灵魂的帮助下,它不是最终答案,但我能够找到这个问题的临时解决方案.如果您运行的是macOS 10.10或更高版本,那么您应该运行brew install gcc49.这将有助于RVM,因为它现在不会尝试使用已弃用的自制软件版本存储库.如果您使用的是早期版本,请查看此function in RVM以获取要安装的相应版本的gcc.
我记录了我在这里遇到的问题:
https://github.com/rvm/rvm/issues/4303