我已尝试过在此处发布的类似问题提供的多种解决方案,但似乎没有任何效果.我无法安装Rails.错误信息如下.另外,Wwen我试着通过使用安装Xcode xcode-select --install,它给我一个网络安装cannot download due to network请指教.我是Ruby的新手,所以非常感谢任何帮助.干杯.
nmacaule-mn1:~ nmacaule$ gem install rails --no-ri --no-rdoc
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/Users/nmacaule/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150209-56320-1m9byas.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
-----
The file "/usr/include/iconv.h" is missing in your build environment,
which means you haven't installed Xcode Command Line Tools …Run Code Online (Sandbox Code Playgroud)