ruby-on-rails – 乘客错误消息我无法弄清楚

我正在DreamHost上测试Rails 3,它刚刚安装了Rails 3.

我创建了一个简单的控制器,它失败了.

浏览器显示500错误(内部服务器错误),日志显示以下消息.

Could not find i18n-0.5.0 in any of the sources
Try running `bundle install`.
*** Exception EOFError in spawn manager (Unexpected end-of-file
detected.) (process 17951):
       from /dh/passenger/lib/phusion_passenger/utils.rb:306:in
`unmarshal_and_raise_errors'
       from
/dh/passenger/lib/phusion_passenger/rack/application_spawner.rb:71:in
`spawn_application'
       from
/dh/passenger/lib/phusion_passenger/rack/application_spawner.rb:41:in
`spawn_application'
       from /dh/passenger/lib/phusion_passenger/spawn_manager.rb:159:in
`spawn_application'
       from /dh/passenger/lib/phusion_passenger/spawn_manager.rb:287:in
`handle_spawn_application'
       from
/dh/passenger/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
       from
/dh/passenger/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
       from
/dh/passenger/lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously'
       from /dh/passenger/bin/passenger-spawn-server:61
[ pid=13245 file=ext/apache2/Hooks.cpp:727 time=2010-12-24 12:13:38.287
]:
 Unexpected error in mod_passenger: Cannot spawn application
'/home/cp_rails3/sites/rails3.codepremise.com': The spawn server has
exited unexpectedly.
 Backtrace:
    in 'virtual boost::shared_ptr<Passenger::Application::Session>
Passenger::ApplicationPoolServer::Client::get(const
Passenger::PoolOptions&)' (ApplicationPoolServer.h:471)
    in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:523)

它在控制台(app.get“url”)中运行良好,也可以在“rails server”中运行.

怎么了?

谢谢.

山姆

最佳答案 哦,我的MacBook上完全出现了这个问题!也许你需要重新安装i18n,并且如果你最近离开了Rails 2,请确保你已经为你的架构和新的Ruby和Rails版本提供了正确的版本.i18n(“eye-one-eight-” en“not”eye-el-eight-en“)是一个国际化的图书馆.

如果您正在使用RVM,请确保i18n包含在您当前使用的gemset中.

https://github.com/svenfuchs/i18n

点赞