Mac 10.8.4未能安装任何本机ruby gem扩展

Mac 10.8.4未能安装任何本机ruby gem扩展,ruby,macos,rubygems,Ruby,Macos,Rubygems,我已将xcode更新为5.1,并从首选项->下载页面安装命令行工具。 但当我尝试安装ruby gems(例如sqlite3、nokogiri)时,会出现如下错误: *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details.

我已将xcode更新为5.1,并从首选项->下载页面安装命令行工具。 但当我尝试安装ruby gems(例如sqlite3、nokogiri)时,会出现如下错误:

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
然后我检查了mkmf.log:

" -o conftest -I/Users/alun/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/alun/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/alun/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.7 -pipe  -Wno-error=unused-command-line-argument-hard-error-in-future conftest.c  -L. -L/Users/alun/.rvm/rubies/ruby-2.1.2/lib -lxml2   -arch x86_64   -lruby-static -framework CoreFoundation  -lpthread -ldl -lobjc  "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */
我搜索了一下,但没有找到类似的mkmf.log
build命令似乎没有指定gcc或任何其他内容。

最后,我解决了我的问题,重新安装xcode和命令行工具,然后用rvm重新安装ruby

同样的问题,请参阅此链接,谢谢,但此链接在mkmf.log中不包含相同的错误,因此应该是不同的问题