按照 wifi 上安装,安装源液切换成淘宝了,一直提示这个鬼东西,关键 xcode-tools 已经安装了,网上说的各种方法都无效。跪了,求大神指点。 zhaoAllendeMacBook-Air:libiconv allen$ sudo gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension.
/usr/local/opt/ruby/bin/ruby -r ./siteconf20151112-29736-jojk2y.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
The file "/usr/include/iconv.h" is missing in your build environment, which means you haven't installed Xcode Command Line Tools properly.
To install Command Line Tools, try running xcode-select --install
on
terminal and follow the instructions. If it fails, open Xcode.app,
select from the menu "Xcode" - "Open Developer Tool" - "More Developer
Tools" to open the developer site, download the installer for your OS
*** extconf.rb failed ***