创建新项目后无法启动rails serve

时间:2013-04-07 04:48:04

标签: ruby-on-rails

rails的新手......我正在使用mac而我创建了一个新的rails项目,但是服务器无法启动。这是我得到的错误。 我在这台Mac上有另一个项目,使用该项目时可以启动服务器。 谁有这方面的经验?谢谢!

/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.1.0/psych.bundle: warning: already initialized constant ANY
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.1.0/psych.bundle: warning: already initialized constant UTF8
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.1.0/psych.bundle: warning: already initialized constant UTF16LE
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin12.1.0/psych.bundle: warning: already initialized constant UTF16BE
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/stream.rb:12: warning: already initialized constant ANY
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/stream.rb:15: warning: already initialized constant UTF8
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/stream.rb:18: warning: already initialized constant UTF16LE
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/stream.rb:21: warning: already initialized constant UTF16BE
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/sequence.rb:42: warning: already initialized constant ANY
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/sequence.rb:45: warning: already initialized constant BLOCK
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/sequence.rb:48: warning: already initialized constant FLOW
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/scalar.rb:9: warning: already initialized constant ANY
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/scalar.rb:12: warning: already initialized constant PLAIN
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/scalar.rb:15: warning: already initialized constant SINGLE_QUOTED
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/scalar.rb:18: warning: already initialized constant DOUBLE_QUOTED
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/scalar.rb:21: warning: already initialized constant LITERAL
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/scalar.rb:24: warning: already initialized constant FOLDED
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/mapping.rb:16: warning: already initialized constant ANY
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/mapping.rb:19: warning: already initialized constant BLOCK
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/nodes/mapping.rb:22: warning: already initialized constant FLOW
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/visitor.rb:10: warning: already initialized constant DISPATCH
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/scalar_scanner.rb:8: warning: already initialized constant TIME
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/scalar_scanner.rb:11: warning: already initialized constant FLOAT
/Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/parser.rb:33:in `<class:Parser>': superclass mismatch for class Mark (TypeError)
from /Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/parser.rb:32:in `<module:Psych>'
from /Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/parser.rb:1:in `<top (required)>'
from /Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:7:in `require'
from /Users/sisigu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:7:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/ordered_hash.rb:2:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/ordered_hash.rb:2:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/ordered_options.rb:1:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/ordered_options.rb:1:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/configuration.rb:2:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/configuration.rb:2:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/railtie.rb:2:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/railtie.rb:2:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/engine.rb:1:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/engine.rb:1:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/plugin.rb:1:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/plugin.rb:1:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:3:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:3:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails.rb:10:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails.rb:10:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/all.rb:1:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/all.rb:1:in `<top (required)>'
from /Users/sisigu/sisi_rails_projects/first_app/config/application.rb:3:in `require'
from /Users/sisigu/sisi_rails_projects/first_app/config/application.rb:3:in `<top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:53:in `require'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:53:in `block in <top (required)>'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
from /Users/sisigu/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

1 个答案:

答案 0 :(得分:0)

创建转到项目目录后,使用bundle install命令安装bundle并使用rails server命令启动rails server。