[英]'require': no such file to load — rails/cli (LoadError)
when I uninstalled bundler 1.6.2 to use 1.0.0 rails crashed. 当我卸载捆绑程序1.6.2以使用1.0.0导轨时崩溃了。 I tried this command: 我尝试了以下命令:
gem uninstall -i /home/mayukh/.rvm/gems/ruby-1.9.2-p320@global bundler -v=1.6.2
Please note, I have uninstalled this globally 请注意,我已全局卸载了此文件
Now, when I run rails -v
or rails s
it shows error like this: 现在,当我运行rails -v
或rails s
它显示如下错误:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- rails/cli (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/bin/rails:7:in `<main>'
My ruby version is ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux] 我的ruby版本是ruby 1.9.2p320(2012-04-20修订版35421)[x86_64-linux]
Uninstall bundle might not be the better solution. 卸载捆绑软件可能不是更好的解决方案。 If you want to force the bundle version to install something try this (as said in this post ) : 如果您想强制安装捆绑软件版本,请尝试以下操作(如本博文所述):
bundle _1.0.0_ install
But for you current problem, you should do what tadman said. 但是对于您当前的问题,您应该执行塔德曼所说的。 Uninstall all bundle instances and get the lastest one to force the version after. 卸载所有捆绑包实例,然后获取最新的实例以强制版本。
Hope this help ! 希望对您有所帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.