2

当我遍历包含文件的文件夹时,有没有办法摆脱警告.rvmrc

====================================================================================

= NOTICE                                                                           =

====================================================================================

= RVM has encountered a new or modified .rvmrc file in the current directory       =

= This is a shell script and therefore may contain any shell commands.             =

=                                                                                  =

= Examine the contents of this file carefully to be sure the contents are          =

= safe before trusting it! ( Choose v[iew] below to view the contents )            =

====================================================================================

Do you wish to trust this .rvmrc file? (/home/sam/myrailsapp/.rvmrc)

y[es], n[o], v[iew], c[ancel]> y
4

4 回答 4

1

根据文档

To turn off the project specific rvmrc functionality in your $HOME/.rvmrc set:
rvm_project_rvmrc=0

我没有 RVM 实例来试用它,但我想这就是您正在寻找的。

我还建议使用rbenv而不是 RVM,原因如下

于 2013-03-08T17:44:57.633 回答
1

RVM 中现在存在一个错误.rvmrc,它一直在询问您是否信任。

解决方案很简单 -.ruby-version改用:

1.9.3

或者

1.9.3@gemset

Gemset 将自动为您创建。

.ruby-version仅用于 Ruby 版本切换。如果你在切换 Ruby 时需要一些脚本,你仍然需要.rvmrc.

于 2013-05-14T07:50:25.843 回答
1

从 .rvmrc 切换到 .ruby-version + .ruby-gemset

rvm rvmrc to .ruby-version
于 2013-05-28T13:22:31.293 回答
0

如果 RVM 已使用 sudo 安装,则必须以cdroot 身份进入该目录。

如果您信任.rvmrcor .ruby-env作为 root,则通知不应返回。

于 2018-05-28T14:16:35.357 回答