在 /usr/local/rvm/scripts/rvm 中安装 rvm 时出错

发布于 2025-01-06 03:48:47 字数 696 浏览 0 评论 0原文

我试图在我的笔记本电脑(ubuntu 11.10)中设置rvm,

当我发出命令时

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

,它不显示安装步骤,就像我在桌面(ubuntu)中运行相同的命令

以及当我给出rvm时 那样 或rvm安装1.9.3 它抛出错误,就像

/usr/bin/rvm: line 54: /usr/local/rvm/scripts/rvm: No such file or directory

我修改了 bashrc 和 bash_profile 使用

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc

但 rvm 没有运行并抛出错误,

/usr/bin/rvm: line 54: /usr/local/rvm/scripts/rvm: No such file or directory

请建议我修复此问题。

i am trying to set up rvm in my laptop (ubuntu 11.10)

when i gave the command

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

its not displaying the installing steps as it did when i ran the same command in my desktop(ubuntu )

and when i gave rvm
or rvm install 1.9.3
its throwing error like

/usr/bin/rvm: line 54: /usr/local/rvm/scripts/rvm: No such file or directory

i have modified the bashrc and bash_profile using

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc

But rvm is not running and throwing errors as

/usr/bin/rvm: line 54: /usr/local/rvm/scripts/rvm: No such file or directory

Please suggest me in fixing this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

2025-01-13 03:48:47

在开始之前,请先清理您的系统:

rm -rf ~/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh

您还可以按照以下步骤操作:使用 RVM 安装了 Ruby 1.9.3,但命令行不显示 ruby -v

然后打开新的控制台并确保没有旧内容指向 /usr/local/rvm

env | grep rvm

在它为空或 ~/.rvm 之后,您可以运行再次安装程序,一切都应该没问题

before you start please clean your system first:

rm -rf ~/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh

you can additionally folow this steps: Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v

then open fresh console and make sure no old stuff points to /usr/local/rvm:

env | grep rvm

after it's empty or ~/.rvm you can run installer again and all should be fine

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