Help us understand the problem. What is going on with this article?

nokogiri 1.6.3.1がインストール出来ずにbundle install出来ない現象の解決メモ

More than 5 years have passed since last update.

bundle install出来ない

$ bundle install

Gem files will remain installed in /home/websites/test.shukuba.net/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.6.3.1 for inspection.
Results logged to /home/websites/test.shukuba.net/vendor/bundle/ruby/1.9.1/extensions/x86_64-linux/1.9.1/nokogiri-1.6.3.1/gem_make.out
An error occurred while installing nokogiri (1.6.3.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.3.1'` succeeds before bundling.

必要なパッケージを入れる

$ sudo yum install libxml2-devel libxslt-devel

[snip]
Complete!

nokogiriを追加する。

$ gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/usr/include/libxml2/
Building native extensions with: '--use-system-libraries=true --with-xml2-include=/usr/include/libxml2/'
This could take a while...
Building nokogiri using system libraries.
Successfully installed nokogiri-1.6.3.1
Parsing documentation for nokogiri-1.6.3.1
Done installing documentation for nokogiri after 4 seconds
1 gem installed

bundle installする

$ bundle install

Your bundle is complete!
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした