LoginSignup
1
1

More than 5 years have passed since last update.

libxml 2.9環境でnokogiri 1.6.3を使うとハマる

Posted at

libxml 2.9.0以降のバージョンでnokogiri 1.6.3とかをbundle installしようとするとハマります。もちろんgem installでもハマります。

対策として

--with-xml2-include=/usr/include/libxml2/

するといいです。

まとめると、bundlerを使うなら

user@local ~$ bundle config build.nokogiri --use-system-libraries --with-xml2-include=/usr/include/libxml2/
user@local ~$ bundle install

すればいいです。

1
1
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
1
1