mac os gem安装json出现error failed的解决办法
升级到最新的macosMavericks。装json出现错误:
geminstalljson-v'1.8.1'
Buildingnativeextensions. Thiscouldtakeawhile... ERROR: Errorinstallingjson: ERROR:Failedtobuildgemnativeextension.
/usr/local/var/rbenv/versions/2.0.0-p247/bin/rubyextconf.rb creatingMakefile
make"DESTDIR=" compilinggenerator.c Infileincludedfrom/usr/local/var/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/ruby.h:33, from../fbuffer/fbuffer.h:5, fromgenerator.c:1: /usr/local/var/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/ruby/ruby.h:51:21:error:string.h:Nosuchfileordirectory /usr/local/var/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/ruby/ruby.h:61:21:error:stdint.h:Nosuchfileordirectory /usr/local/var/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/ruby/ruby.h:64:23:error:inttypes.h:Nosuchfileordirectory /usr/local/var/rbenv/versions/2.0.0-p247/include/ruby-2.0.0/ruby/ruby.h:68:19:error:stdio.h:Nosuchfileordirectory