RVM 安装缺少 $PATH [英] RVM installation missing $PATH

查看:49
本文介绍了RVM 安装缺少 $PATH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试重新安装最新版本的 RVM 时,RVM 给了我一条与$PATH"变量丢失或不正确相关的错误通知.有人知道吗(a) 这个变量应该设置为什么以及(b) 如何改变它?

When I attempted to reinstall the latest version of RVM, RVM gave me an error notice related to a missing or incorrect "$PATH" variable. Does anyone know (a) what this variable should be set to and (b) how to alter it?

我搜索了几十个线程,但似乎没有一个能准确地引用这个问题.任何帮助将不胜感激.

I've searched dozens of threads, but none appears to reference this problem exactly. Any help would be greatly appreciated.

谢谢,科迪

Codys-MacBook-Pro:demo_app Cody$  rvm get head && rvm reload
######################################################################## 100.0%
Downloading RVM from wayneeseguin branch master
Upgrading the RVM installation in /Users/Cody/.rvm/
RVM PATH line found in /Users/Cody/.bashrc /Users/Cody/.zshrc.
RVM sourcing line found in /Users/Cody/.bash_profile /Users/Cody/.zprofile.

Upgrade Notes:

/Users/Cody/.bash_profile:3:export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/Cody/.rvm/bin

* WARNING: Above files contains `PATH=` with no `$PATH` inside, this can break RVM,
for details check https://github.com/wayneeseguin/rvm/issues/1351#issuecomment-        10939525
to avoid this warning append #PATH.

Upgrade of RVM in /Users/Cody/.rvm/ is complete.

推荐答案

这不是错误,解决方法是在导出 PATH= 行前添加 $PATH,因此您应该:

It's not an error and the fix is to prepend $PATH to your export PATH= line, so you should have:

export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/Cody/.rvm/bin

这篇关于RVM 安装缺少 $PATH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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