运行thin start报错的解决方法

阅读更多

在rails3的项目里,运行thin start的时候报错:

>> Using rack adapter
>> Thin web server (v1.4.1 codename Chromeo)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/backends/tcp_server.rb:16:in `connect': cannot load such file --
 thin/connection (LoadError)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/backends/base.rb:55:in `block in start'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0.rc.4-x86-mingw32/lib/eventmachine.rb:187:in `call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0.rc.4-x86-mingw32/lib/eventmachine.rb:187:in `run_mac
hine'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0.rc.4-x86-mingw32/lib/eventmachine.rb:187:in `run'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/backends/base.rb:63:in `start'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/server.rb:159:in `start'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/controllers/controller.rb:86:in `start'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:185:in `run_command'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:151:in `run!'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/thin-1.4.1/bin/thin:6:in `'
        from C:/Ruby193/bin/thin:23:in `load'
        from C:/Ruby193/bin/thin:23:in `
'

 

造成这个问题的原因是thin的最新版本和其他gems不兼容,替换较低版本的即可。

你可能感兴趣的:(运行thin start报错的解决方法)