Ruby 机架找不到精简负载错误

Ruby 机架找不到精简负载错误,ruby,gem,rack,thin,Ruby,Gem,Rack,Thin,$/usr/bin/rackup-s thin-o 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/Framew

$/usr/bin/rackup-s thin-o 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>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/Ruby/2.0.0/rubygems/core\u ext/kernel\u require.rb:126:在'require'中:无法加载此类文件--精简(LoadError)
from/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/Ruby/2.0.0/rubygems/core\u ext/kernel\u require.rb:126:in'require'
from/Library/Ruby/Gems/2.0.0/Gems/rack-1.6.0/lib/rack/handler/thin.rb:1:in`'
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\u中间件”
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`'
from/usr/bin/rackup:23:在“装载”中
from/usr/bin/rackup:23:in`'
我在:/Users/user25/.rbenv/shimmes/thin上安装了thin(gem-install-thin)


我哪里做错了?我试图提供rackup的绝对路径,但没有成功。

安装gem后是否运行了
rbenv rehash
?每当添加新垫片时,您都需要重新灰化。

您正在从系统Ruby调用
rackup
,但您的rbenv安装中已安装了thin。请确保您使用的是正确的Ruby安装(我不知道您如何使用rbenv)。我知道,我还从命令行安装了精简版(应该是系统精简版,对吗?)修复了它,谢谢matt。但是,如果我给出绝对路径(/usr/bin/rackup-s/Users/user25/.rbenv/shimmes/thin-o 0.0.0-p4000 config.ru),系统ruby应该正确选择它?相反,它为什么忽略我的路径并查看:rack/handler/_users/user25/.rbenv/shimmes/thin?