我的本地机器上有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文件中。我应该更改它还是做其他事情。
答案 0 :(得分:0)
首先使用命令
显示错误显示的rubyrvm install ruby-2.0.0-p195
并使用命令
创建适当的gemset rvm gemset create gemset_name
然后键入此内容以从.rvmrc切换到.ruby-version + .ruby-gemset
rvm rvmrc to .ruby-version