Rails错误:新项目

时间:2012-02-27 03:32:42

标签: ruby-on-rails ruby ruby-on-rails-3 rubygems

我正在尝试在Rails中启动一个新项目,但我不断收到以下错误:

/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [] (Gem::LoadError)
        from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
        from /Library/Ruby/Site/1.8/rubygems.rb:1210:in `gem'
        from /usr/bin/rails:18

我该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:5)

试试这个:

sudo gem install railties