當我嘗試手動安裝mysql2 gem時,我得到了這個瘋狂的混亂。 任何幫助將不勝感激。mysql2 gem將無法正常安裝
littleMac$ sudo gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql2-0.3.6 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql2-0.3.6/ext/mysql2/gem_make.out
你還沒有使用[rvm](http://rvm.beginrescueend.com/)嗎? – coreyward
你有沒有安裝Xcode?如果你沒有,原生寶石將無法建立。 –