小编Div*_*281的帖子

在Maverick中在Rails中安装Ruby时出错

我已尝试过在此处发布的类似问题提供的多种解决方案,但似乎没有任何效果.我无法安装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)

rubygems ruby-on-rails extconf.rb

4
推荐指数
1
解决办法
2482
查看次数

标签 统计

extconf.rb ×1

ruby-on-rails ×1

rubygems ×1