Skip to content

Instantly share code, notes, and snippets.

@kamatari
Created March 31, 2015 23:16
Show Gist options
  • Save kamatari/c621cbca5cd9391884e2 to your computer and use it in GitHub Desktop.
Save kamatari/c621cbca5cd9391884e2 to your computer and use it in GitHub Desktop.
しんせつ
$ gem install anemone [40/62]
Fetching: mini_portile-0.6.2.gem (100%)
Successfully installed mini_portile-0.6.2
Fetching: nokogiri-1.6.6.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing anemone:
ERROR: Failed to build gem native extension.
/usr/local/Cellar/ruby/2.1.2_2/bin/ruby 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 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
version and run it.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/Cellar/ruby/2.1.2_2/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build
extconf failed, exit code 1
Gem files will remain installed in /usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0/nokogiri-1.6.6.2/gem_make.out
$ xcode-select --install
xcode-select: note: install requested for command line developer tools
$ gem install anemone
Building native extensions. This could take a while...
Successfully installed nokogiri-1.6.6.2
Fetching: robotex-1.0.0.gem (100%)
Successfully installed robotex-1.0.0
Fetching: anemone-0.7.2.gem (100%)
Successfully installed anemone-0.7.2
Parsing documentation for anemone-0.7.2
Installing ri documentation for anemone-0.7.2
Parsing documentation for nokogiri-1.6.6.2
Installing ri documentation for nokogiri-1.6.6.2
Parsing documentation for robotex-1.0.0
Installing ri documentation for robotex-1.0.0
Done installing documentation for anemone, nokogiri, robotex after 8 seconds
3 gems installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment