LoginSignup
5
6

More than 5 years have passed since last update.

[Ruby]nokogiriがlibxml2のせいでインストールできない件〜El Captain版〜

Posted at

libxml2 version 2.6.21 or later is required!

というのが出て、nokogiriのインストールができなかった。

bundle config build.nokogiri --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 --use-system-libraries

bundle install

でOK!

以下のサイトで解決に至りました、ありがとうございます。
OSX yosemite(10.10)でnokogiriのインストールに失敗
Error to install Nokogiri on OSX 10.9 Maverick?

5
6
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
5
6