首页 文章

Cpanel中的Ruby On Rails问题

提问于
浏览
0

当我通过cpanel启动我的应用程序时,我收到此日志 .

** Starting Mongrel listening at 0.0.0.0:12001
** Starting Rails with production environment...
/home/pixelcor/ruby/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require': no such file to load -- readline (MissingSourceFile)
    from /home/pixelcor/ruby/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
    from /home/pixelcor/ruby/gems/gems/rush-0.6.8/lib/rush/shell.rb:1
    from /home/pixelcor/ruby/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
    from /home/pixelcor/ruby/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
    from /home/pixelcor/ruby/gems/gems/rush-0.6.8/lib/rush/embeddable_shell.rb:1
    from /home/pixelcor/ruby/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
    from /home/pixelcor/ruby/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
    from /home/pixelcor/ruby/gems/gems/rush-0.6.8/lib/rush.rb:87
    from /home/pixelcor/ruby/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /home/pixelcor/ruby/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /home/pixelcor/ruby/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /home/pixelcor/ruby/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `require'
    from /home/pixelcor/ruby/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /home/pixelcor/ruby/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /home/pixelcor/ruby/gems/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /home/pixelcor/rails_apps/demo/config/boot.rb:117:in `load_gems'
    from /home/pixelcor/ruby/gems/gems/rails-2.3.5/lib/initializer.rb:164:in `process'
    from /home/pixelcor/ruby/gems/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
    from /home/pixelcor/ruby/gems/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
    from /home/pixelcor/rails_apps/demo/config/environment.rb:17
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `call'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `listener'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
    from /usr/bin/mongrel_rails:23:in `load'
    from /usr/bin/mongrel_rails:23

任何人都可以帮助我克服这个错误 .

1 回答

  • 0

    通过将依赖项放在gemfile.local中使用rb-readline来修复它

相关问题