Nokogiri Error When Running Bundle Install

Error installing Nokogiri via Bundler on Windows

This particular version of Nokogiri is listed in Gemfile.lock. You can remove that file, run bundle install again and see if it works.

This is more a workaround than a proper solution, but dependencies in Gemfile.lock are quite old so it would be a good thing to refresh them anyway.

Nokogiri 1.6.8 is installed but gives error for previous Nokogiri when running bundle install

I could not fix this issue. It was looping through upgrades and downgrades, so after much frustration I tried Ruby 2.6 that Redmine 4.2 claimed to be compatible, which still had issues. I downgraded to Ruby 2.3 and it worked, then I migrated my database according to the redmine.org documentation and almost everything is functional, and I got a feedback that it is much faster.

According to my experience, you will have your Redmine database still working so don't worry that it s the same version.

Bundle install error installing nokogiri (1.6.7.2). Gem installs but not for rails app

I fixed it, but it may be an unsatisfying answer. I went through all of the advice, installed various dependencies, changed various settings. Nothing seemed to work. Then I deleted the project folder and pulled it again from Github, reinstalled rvm, ran bundle install again and it all worked normally.

So what was the one thing that I was missing? I can't be sure. But I can say if nothing else works, create a new folder and download the project again and run bundle install.. after installing all dependencies / tools first of course, found here -> https://nokogiri.org/tutorials/installing_nokogiri.html

Error installing Nokogiri on bundle install but already installed

Try running bundle config build.nokogiri --use-system-libraries as noted in the bundler output. Then re-run bundle.

Rails : bundle install nokogiri fail

Possible duplicates:

  • Mac OS X: Error to install Nokogiri on OSX 10.9 Maverick?
  • Ubuntu: Error installing Nokogiri 1.5.0 with rails 3.1.0 and ubuntu

The problem is probably that you have to natively install libxml and libxslt, which Nokogiri relies on.

If you run gem install nokogiri -v '1.6.2.1' | grep libxml, does anything show up?

Nokogiri error when running bundle install

Turned out I was using the default system Ruby (and thus installing all the gems there in /Library/Ruby/Gems) even though rbenv points to ruby-1.9.3 so that's why Nokogiri was complaining.

Fixed this by adding this to $PATH, so rbenv loads before the system ruby:

export PATH="$HOME/.rbenv/bin:$PATH"



Related Topics



Leave a reply



Submit