2011-11-03 144 views
0

我正在嘗試升級OS X 10.6上的Rails 3。我目前有寶石版本1.8.11。我收到了這個錯誤:安裝Rails 3 OS X時出錯10.6

ERROR: Error installing rails: 
    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 
+1

你安裝最新版本的Xcode? – Cygnusx1

回答