1. Terminal中Octopress源码目录下Bundle install时报安装RedCloth报错
1.1 描述:ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
1.2. 系统版本是10.9.1,Xcode是5.0
1.3. 解决步骤
1.31. 删除XCode,从AppStore中安装最新的XCode5.2,Xcode会自动安装到/Applications下面
1.3.2. Terminal:
1.3.2.1. 切换Xcode用到的SDK和命令行工具的目录: sudo xcode-select --switch /Applications/Xcode.app
1.3.2.2. 查看切换后的目录: xcode-select -print-path
1.3.3. 再次在Octopress源码目录下运行bundle install,RedCloth等依赖包都安装上了。