0
alex@ubuntu:~/Documents/ruby_projects/my_project$ rvm --create --rvmrc 1.9.3@my_project

这个给了我

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

为什么我无法以这种方式创建 rvmrc?

4

2 回答 2

1

可能是您rvm以某种方式损坏了您的安装。可以通过破坏它所包含的各种 shell 脚本文件来修复它,但解决该问题的最简单方法是重新安装它。

如果在现有安装之上重新安装不起作用,请在安装之前尝试完全删除它:

rvm implode

通常最好在它被销毁后创建一个新的 shell,以便从头开始。RVM 有各种各样的钩子,即使在它被内爆之后,它们也可以保留在任何现有的 shell 中。

于 2012-12-15T07:07:05.583 回答
0

您需要阅读消息并按照说明进行操作。

rvm 的基本用途是:

rvm [use] <ruby-version>

省略 use 关键字仍然意味着使用 ruby​​ 但不会显示消息。

于 2012-12-15T07:36:52.470 回答