为什么当我尝试安装 RVM 时会收到警告?

发布于 2024-11-09 07:49:56 字数 1551 浏览 2 评论 0原文

我正在尝试在新机器上安装 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你怎么敢 2024-11-16 07:49:56

运行rvm Notes并检查输出。确保已安装操作系统依赖项。

Run rvm notes and check the output. Ensure that OS dependencies are installed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文