LoginSignup
9
9

More than 5 years have passed since last update.

Yosemite(beta) + homebrew + rbenv + ruby + nokogiri

Last updated at Posted at 2014-09-22

Yosemite(beta) で bundle install すると nokogiri でエラる件。

  • ruby 2.1.2p95
  • nokogiri-1.6.3.1
nokogiri-1.6.3.1/gem_make.out
Building nokogiri using packaged libraries.
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed ***

出来るだけシンプルな解決方法を探した結果
xcode_6.1_beta_2.dmg をインストールした状態で
(brew doctor でエラーが出ないような状態ならインストール済みのはず)

$ xcode-select --install

ググると見つかる以下のような操作は不要。

$ brew tap homebrew/dupes
$ brew install libxml2 libxslt
$ brew install libiconv
$ gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libx(省略)
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9