机架无法定位瘦负载错误

时间:2015-06-14 18:23:46

标签: ruby gem rack thin

$ / usr / bin / rackup -s thin -o 0.0.0.0 -p 4000 config.ru

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- thin (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler/thin.rb:1:in `<top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `const_get'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `block in get'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `inject'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/handler.rb:20:in `get'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:290:in `server'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:214:in `block in logging_middleware'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:327:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:327:in `block in build_app'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:326:in `reverse_each'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:326:in `build_app'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:336:in `wrapped_app'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:272:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/lib/rack/server.rb:147:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.0/bin/rackup:4:in `<top (required)>'
    from /usr/bin/rackup:23:in `load'
    from /usr/bin/rackup:23:in `<main>'

我在/Users/user25/.rbenv/shims/thin

中瘦(gem install thin)

我哪里错了?我试图提供机架的绝对路径,但无济于事。

1 个答案:

答案 0 :(得分:0)

安装宝石后你运行rbenv rehash了吗?无论何时添加新垫片,都需要重新进行重新连接。