后续:rails3 和 mongrel 问题 - ruby​​ 1.9.2

发布于 2024-11-14 20:32:17 字数 3132 浏览 0 评论 0原文

这是我昨天发布的问题的后续问题,在得到试图提供帮助的人们的一些答复后,该问题似乎“悬而未决”。

无论如何,这次和之前尝试的唯一区别是我使用 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。

This is a follow up question to my question posted yesterday which seems to be "hanging" in mid air after getting some responses from folks that tried to help.

Anyways, the only difference between this time and the previous attempt is that i am using RVM to install an use Ruby 1.9.2. The mongrel is 1.2.0.pre version since mongrel 1.1.5 does not install with Ruby 1.9.2.

My Gemfile is as follows:

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

And

The error log is as shown below when i run "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>'

Please help. TIA.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只想待在家 2024-11-21 20:32:17

添加
宝石'调度员'
Gemfile 似乎有帮助
如果调度程序 gem 不在您的列表中,那么可以通过以下方式执行此操作
gem 安装调度程序
最后进行捆绑更新或捆绑安装
谢谢。

Addding
gem 'dispatcher'
to Gemfile seems to help
If dispatcher gem is not a part of your list, then do so by
gem install dispatcher
Finally do bundle update or bundle install
Thanks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文