收到警告消息“路径设置为 RVM"使用 rvm 更新 ruby​​ 版本后 [英] Received Warning message "Path set to RVM" after updating ruby version using rvm

查看:30
本文介绍了收到警告消息“路径设置为 RVM"使用 rvm 更新 ruby​​ 版本后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,由于出现警告消息(见下文),我尝试更新我的 ruby​​ 版本.

Recently I tried to update my ruby version due to a warning message (see below).

现在,当我启动 iterm2 时收到以下警告消息:

Now I get the following warning message when I start my iterm2:

Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see:
    https://github.com/wayneeseguin/rvm/issues/3212

有谁知道如何解决这个警告?它并没有真正影响我的工作,但有点令人不安.

Does anyone know how to resolve this warning? It hasn't really impacted my work but it is a little unsettling.

供您参考:
1. 我相信我运行 rvm get stable 以获得最新的 ruby​​ 版本.
2. 这是我最初尝试解决的警告消息,但也没有解决:

for your information:
1. I believed I ran rvm get stable to get the latest ruby version.
2. this is the warning message I was initially trying to resolve but it has not been resolved either:

warning: parser/current is loading parser/ruby21, which recognizes
warning: 2.1.5-compliant syntax, but you are running 2.1.2.

我正在使用 1. Mac OS X 2. iterm2 和 3.oh-my-zsh shell

I am using 1. Mac OS X 2. iterm2 and 3.oh-my-zsh shell

推荐答案

我在使用 oh-my-zsh 时遇到了同样的问题使用选项 --rails 安装 rvm 时,出现此警告:

I had same issue with oh-my-zsh While installing rvm with option --rails, there was this warning:

这个解决方案对我有用:打开.zshrc文件,找到PATH行

This solution works for me: Open .zshrc file, and find PATH line

改变

导出路径=/path/to/something

进入

export PATH="$PATH:/path/to/something"

保存并执行source ~/.zshrc,然后它起作用了.

save it and do source ~/.zshrc, Then it worked.

这篇关于收到警告消息“路径设置为 RVM"使用 rvm 更新 ruby​​ 版本后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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