我在尝试安装rails时遇到了这个问题:gen install rails
我几乎不知道我在做什么:/尝试学习:)
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
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.7.5 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.7.5/ext/json/ext/generator/gem_make.out
提前致谢!
我已尝试按照此处(http://rubyonrails.org/download)和此处(http://rubygems.org/pages/download)的说明进行操作。