I\'m having issues with bundling my Gemfile. I have Nokogiri installed already yet when I run bundle install
it fails to load Nokogiri.
Installing Nok
On Mac OSX, you can execute below commands to fix this nokogiri
gem issue.
xcode-select --install
gem install nokogiri
bundle install
I had the same issue, and I solved it with this:
sudo yum install patch
brew install libxml2
bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2"
bundle install
it's work for me
(source here)
I noticed that I hadn't installed tar on my system.
After running dnf install tar
, gem install nokogiri
went fine.
Try running bundle config build.nokogiri --use-system-libraries
as noted in the bundler output. Then re-run bundle
.