2012年8月17日 星期五

如何在 Windows 上 安裝 Thin

如果安裝 Thin 一直出現這樣的錯誤
 error: cannot convert 'stat*' to '_stati64*' for argument '2' to 'int _fstati64(int
, _stati64*)'



參考來源
ruby - Cannot install thin on windows - Stack Overflow

假設已經裝好 DevKit
還沒裝好請參考 Development Kit · oneclick/rubyinstaller Wiki · GitHub

C:\Users\user>gem install eventmachine --pre
Fetching: eventmachine-1.0.0.rc.4-x86-mingw32.gem (100%)
Successfully installed eventmachine-1.0.0.rc.4-x86-mingw32
1 gem installed
Installing ri documentation for eventmachine-1.0.0.rc.4-x86-mingw32...
Installing RDoc documentation for eventmachine-1.0.0.rc.4-x86-mingw32...

C:\Users\user>gem install thin
Fetching: daemons-1.1.9.gem (100%)
Fetching: thin-1.4.1.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed daemons-1.1.9
Successfully installed thin-1.4.1
2 gems installed
Installing ri documentation for daemons-1.1.9...
Installing ri documentation for thin-1.4.1...
Installing RDoc documentation for daemons-1.1.9...
Installing RDoc documentation for thin-1.4.1...


沒有留言:

張貼留言