[b]1[/b].使用rvm,安装gem,不要sudo gem install ...要用rvmsudo代替,
[b]2[/b].thin不需要rvm wrapper生成一个脚本
[b]3[/b].可以使用which thin查看thin是否安装在了正确的gemset
运行thin,若出现“bundler/setup”无法找到的类似错误,可以参考以上三条
若出现下面的错误,
[quote]undefined methodassociate_callback_target' for #<Thin::Connection:0xa3402c8> (NoMethodError)[/quote]
[b]4[/b].则需要重新安装一下eventmachine,[url=https://thin.lighthouseapp.com/projects/7212/tickets/134-thin-crashes-when-connecting-with-eventmachine-01210]>>猛击这里<<[/url]
卸载gem时,若提示没有安装该gem,但gem list明明显示已经安装了,那么应该是安装在了global gemset下,去那里卸载
[b]5[/b].若出现错误
[quote]thin-1.3.1/lib/rack/adapter/loader.rb:36:in `eval'[/quote]
则说明使用了不正确的rack版本,可能是安装rails3.2时顺带装上了rack-1.4.1,而thin-1.3.1需要rack-1.3.6
rvmsudo gem intall thin
[b]2[/b].thin不需要rvm wrapper生成一个脚本
[b]3[/b].可以使用which thin查看thin是否安装在了正确的gemset
运行thin,若出现“bundler/setup”无法找到的类似错误,可以参考以上三条
若出现下面的错误,
[quote]undefined methodassociate_callback_target' for #<Thin::Connection:0xa3402c8> (NoMethodError)[/quote]
[b]4[/b].则需要重新安装一下eventmachine,[url=https://thin.lighthouseapp.com/projects/7212/tickets/134-thin-crashes-when-connecting-with-eventmachine-01210]>>猛击这里<<[/url]
gem uninstall eventmachine
gem install eventmachine
卸载gem时,若提示没有安装该gem,但gem list明明显示已经安装了,那么应该是安装在了global gemset下,去那里卸载
[b]5[/b].若出现错误
[quote]thin-1.3.1/lib/rack/adapter/loader.rb:36:in `eval'[/quote]
则说明使用了不正确的rack版本,可能是安装rails3.2时顺带装上了rack-1.4.1,而thin-1.3.1需要rack-1.3.6