跟进:rails3和mongrel问题 - ruby​​ 1.9.2

时间:2011-06-12 14:37:26

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

这是我昨天发布的问题的一个跟进问题,在得到那些试图提供帮助的人的回复之后,似乎在空中“悬挂”。

无论如何,这个时间与之前尝试之间的唯一区别是我使用RVM来安装Ruby 1.9.2。 mongrel是1.2.0.pre版本,因为mongrel 1.1.5不能与Ruby 1.9.2一起安装。

我的Gemfile如下:

source 'http://rubygems.org'
    gem 'rails', '3.0.8'
    gem 'pg'
    gem 'mongrel', '>= 1.2.0.pre2'
    gem "cgi_multipart_eof_fix"
    gem "fastthread"

当我运行“mongrel_rails cluster :: start”:

时,错误日志如下所示
 ** Daemonized, any open files are closed.  Look at tmp/pids/mongrel.3000.pid and
 log/mongrel.3000.log for info.
    ** Starting Mongrel listening at 127.0.0.1:3000
    ** Starting Rails with development environment...
    ** Mounting Rails at /home/ec2-user/test_ruby_1.9.2...
    /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.8/lib/active_sup
port/dependencies.rb:239:in `require': no such file to load -- dispatcher (LoadE
rror)
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.8/l
ib/active_support/dependencies.rb:239:in `block in require'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.8/l
ib/active_support/dependencies.rb:225:in `block in load_dependency'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.8/l
ib/active_support/dependencies.rb:596:in `new_constants_in'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.8/l
ib/active_support/dependencies.rb:225:in `load_dependency'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.8/l
ib/active_support/dependencies.rb:239:in `require'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/li
b/mongrel/rails.rb:148:in `rails'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/bi
n/mongrel_rails:116:in `block (2 levels) in run'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/li
b/mongrel/configurator.rb:149:in `call'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/li
b/mongrel/configurator.rb:149:in `listener'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/bi
n/mongrel_rails:102:in `block in run'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/li
b/mongrel/configurator.rb:50:in `call'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/li
b/mongrel/configurator.rb:50:in `initialize'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/bi
n/mongrel_rails:86:in `new'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/bi
n/mongrel_rails:86:in `run'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/li
b/mongrel/command.rb:210:in `run'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/gems/mongrel-1.2.0.pre2/bi
n/mongrel_rails:282:in `<top (required)>'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/bin/mongrel_rails:19:in `l
oad'
        from /home/ec2-user/.rvm/gems/ruby-1.9.2-p180/bin/mongrel_rails:19:in `<
main>'

请帮忙。 TIA。

1 个答案:

答案 0 :(得分:1)

Addding     宝石'调度员' 到Gemfile似乎有所帮助 如果调度程序gem不是列表的一部分,那么请执行此操作     gem安装调度程序 最后进行捆绑更新或捆绑安装 感谢。