RVM Requiremets尝试利用已过时的自制软件/版本 [英] RVM Requiremets tries to tap deprecated homebrew/versions

查看:81
本文介绍了RVM Requiremets尝试利用已过时的自制软件/版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的Mac OS Sierra(10.13.3)计算机上运行一个Ruby on Rails项目.当我导航到Rails文件夹时,RVM会告诉我以下内容:

I'm trying to get a Ruby on Rails project running on my Mac OS Sierra (10.13.3) machine. When I navigate to the Rails folder, RVM tells me the following:

Required ruby-1.9.3-p392 is not installed.
To install do: 'rvm install "ruby-1.9.3-p392"'

但是,当我进行安装时,会得到以下信息:

However, when I do that install, I get the following:

$ 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.

当我查看该日志文件时,会看到以下内容:

When I look at that log file, I see the following:

[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/versions的想法上,而Homebrew已完全删除了该想法.我已经更新了自制软件.我已经更新了RVM.我试图欺骗Homebrew使该水龙头可用(不成功).我试图欺骗RVM认为这不是必需的自定义程序包(无法弄清楚如何).似乎没有任何作用.救命!

So. RVM seems to be stuck on this idea of installing homebrew/versions, which has been completely removed by Homebrew. I've updated Homebrew. I've updated RVM. I've tried to trick Homebrew into having that tap available (not successful). I've tried to trick RVM into thinking that's not a required custom package (couldn't figure out how). Nothing seems to be working. Help!

我通过实际升级项目以使用ruby-2.1.0解决了这个问题.像魅力一样工作,但当然并没有真正解决原始问题.感谢您提供以下答案,希望他们能在相同情况下帮助其他可怜的人!

I got around the problem by actually upgrading the project to use ruby-2.1.0 . Worked like a charm, but of course didn't actually resolve the original issue. Thank you for the answers below, and hopefully they'll help out some other poor soul in the same situation!

推荐答案

我也对此感兴趣.尽管这不是在Github上善意的帮助下的最终答案,但我能够找到此问题的临时解决方案.

I tripped up on this as well. While it's not a final answer with the help of a kind soul on Github I was able to find a temporary solution to this issue.

如果运行的是macOS 10.10或更高版本,则应运行brew install gcc49.这将对RVM有所帮助,因为它现在不再尝试使用已弃用的自制版本库.如果您使用的是较早版本,请查看此功能在RVM中以获取要安装的适当版本的gcc.

If you are running macOS 10.10 or later then you should run brew install gcc49. This will help RVM as it now won't try to tap the deprecated homebrew versions repository. If you are on an earlier version have a look at this function in RVM for the appropriate version of gcc to install.

我已经记录了我在这里遇到的问题: https://github.com/rvm/rvm/issues/4303

I have documented the issue I was encountering over here: https://github.com/rvm/rvm/issues/4303

这篇关于RVM Requiremets尝试利用已过时的自制软件/版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆