0

我的本地机器上有 ruby​​-2.0.0-p0。当我部署我的 rails 应用程序时,我遇到了很多错误,我已经修复它并且它正在运行。但同样,1天后,我尝试运行相同的应用程序,我收到了这条消息

You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version'
or ignore this warnings with 'rvm rvmrc warning ignore /home/Desktop/PV-NEC/pv-nec/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.

ruby-2.0.0-p195 is not installed.
To install do: 'rvm install ruby-2.0.0-p195'

我已将rvm use ruby-2.0.0-p195@rails3代码放入我的 .rvmrc 文件中。我是否需要更改它或做其他事情。

4

1 回答 1

0

首先安装 ruby​​,如显示的命令错误:

rvm install ruby-2.0.0-p195

并使用命令创建适当的 gemset

   rvm gemset create gemset_name

然后输入这个以从 .rvmrc 切换到 .ruby-version + .ruby-gemset

rvm rvmrc to .ruby-version
于 2013-05-30T06:33:30.117 回答