LoginSignup
0
0

More than 3 years have passed since last update.

ちょくちょく苦しむnokogiri Error解消法

Posted at

最近はdockerで構築するので無縁でしたが、久しぶりにローカルで構築して、bundleした際に、nokogiriのエラーが出たので備忘録
昔よく悩んだようなww

An error occurred while installing nokogiri (1.10.5), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.10.5' --source 'https://rubygems.org/'` succeeds before bundling.

解決

こちらを参考にさせていただきました。

$ brew tap homebrew/dupes

廃止された???

Error: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated.

とりあえす飛ばして次のコマンド

$ brew install libxml2 libxslt libiconv

またエラー

Error: libxml2 2.9.9_2 is already installed
To upgrade to 2.9.10, run `brew upgrade libxml2`
Error: libxslt 1.1.33_1 is already installed
To upgrade to 1.1.34, run `brew upgrade libxslt`
Warning: libiconv 1.16 is already installed and up-to-date
To reinstall 1.16, run `brew reinstall libiconv`

エラーの出てるbrew upgradeを打ってみる

$ brew upgrade libxml2
$ brew upgrade libxslt
$ brew reinstall libiconv
brew link --force libxslt

もう入ってる?

Error: libxslt 1.1.34 already installed

なんとか解決しました

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