我正在尝试让 Ruby on Rails 项目在我的 Mac OS Sierra (10.13.3) 计算机上运行。当我导航到 Rails 文件夹时,RVM 告诉我以下信息:
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/[email protected] /cdn-cgi/l/email-protection/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 让它认为这不是必需的自定义包(不知道如何实现)。似乎什么都不起作用。帮助!
EDIT
我通过实际升级项目以使用 ruby-2.1.0 解决了这个问题。效果很好,但当然并没有真正解决最初的问题。感谢您在下面的回答,希望它们能帮助其他处于相同情况的可怜人!
我也被这个绊倒了。虽然这不是最终答案,但在 Github 上一位好心人的帮助下,我找到了这个问题的临时解决方案。
如果您运行的是 macOS 10.10 或更高版本,那么您应该运行brew install gcc49
。这将有助于 RVM,因为它现在不会尝试利用已弃用的自制版本存储库。如果您使用的是早期版本,请查看此RVM 中的函数 https://github.com/rvm/rvm/blob/c20852ea9cfce5e14c994d035cf8f0d0dbf07797/scripts/functions/requirements/osx_brew#L226安装适当版本的 gcc。
我在这里记录了我遇到的问题:https://github.com/rvm/rvm/issues/4303 https://github.com/rvm/rvm/issues/4303
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)