为什么当我尝试安装 RVM 时会收到警告?
我正在尝试在新机器上安装 RVM。我以前做过,然后一切顺利。但现在我不断收到这些错误:
WARNING:
Could not source '/Users/anders/.rvm/scripts/base' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders/.rvm/scripts/version' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders/.rvm/scripts/selector' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders/.rvm/scripts/cd' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders.rvm/scripts/cli' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders/.rvm/scripts/override_gem' as file does not exist.
RVM will likely not work as expected.
cat: /Users/anders/.rvm/VERSION: No such file or directory
/Users/anders/.rvm/src/rvm/scripts/rvm: line 133: __rvm_conditionally_add_bin_path:
command not found
我按照 https://rvm.beginrescueend.com/rvm 上的步骤操作/install/ 但它不起作用。
我使用:
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
安装时,我没有以root身份运行,也没有使用sudo
。
我还将其添加到我的 .bash_profile 文件中:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
我检查过,“抱怨”文件确实存在,所以我想这是一个权限问题。任何有关如何解决此问题的提示将不胜感激。
I'm trying to install RVM on a new machine. I have done it before and then it went fine. But now I keep getting these errors:
WARNING:
Could not source '/Users/anders/.rvm/scripts/base' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders/.rvm/scripts/version' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders/.rvm/scripts/selector' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders/.rvm/scripts/cd' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders.rvm/scripts/cli' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders/.rvm/scripts/override_gem' as file does not exist.
RVM will likely not work as expected.
cat: /Users/anders/.rvm/VERSION: No such file or directory
/Users/anders/.rvm/src/rvm/scripts/rvm: line 133: __rvm_conditionally_add_bin_path:
command not found
I followed the steps on https://rvm.beginrescueend.com/rvm/install/ but it doesn't work.
I used:
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
when installing, I'm not running as root nor using sudo
.
I also added this to my .bash_profile file:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
I checked and the "complaining" files do exist, so I guess it's a permission thing. Any tips on how to solve this would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行
rvm Notes
并检查输出。确保已安装操作系统依赖项。Run
rvm notes
and check the output. Ensure that OS dependencies are installed.