找不到RubyGem railties [英] Could not find RubyGem railties
本文介绍了找不到RubyGem railties的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用rails new命令创建新应用程序,但得到此错误:
I try to create new app with "rails new" command however getting this error:
'report_activate_error': Could not find RubyGem railties (>= 0) (Gem::LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:244:in 'activate_dep'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:236:in `activate'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:1307:in `gem'
from /usr/local/bin/rails:18
有什么想法?
通过我在Ubuntu上工作的方式
by the way I am working on Ubuntu
gem list
*** LOCAL GEMS ***
它是空的,但是我之前安装了rails
it is empty but I installed rails just before
推荐答案
您需要安装RVM(我不知道它是最好的解决方案,但它工作正常),然后使用像 rvmsudo rails新
等等。我使用包含rvm或rvmsudo阶段的rails和ruby命令,并且所有这些阶段都开始工作。
You need to install RVM (I don't know it is the best solution but it works) then use such rails commands like rvmsudo rails new
or such. I use rails and ruby command with including rvm or rvmsudo phase and all of them start to work.
这篇关于找不到RubyGem railties的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文