Error Installing Nokogiri on Bundle Install But Already Installed

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.

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.

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 gem

I fixed the problem by first using brew install libxml2 libxslt. I then had to download the old xcode-select developer tools from late October found here https://developer.apple.com/downloads/index.action#

After that, running sudo gem install nokogiri finally worked.

How to install Nokogiri 1.6.7.2 on Windows

Nokogiri 1.6.7.2 is not the latest version.

In your gemfile replace the "Nokogiri gem" line with this:

gem 'nokogiri', '~> 1.6.8.rc3'

In Nokogiri issue #1456 I found an possible solution.

First, uninstall all Nokogiri versions using gem uninstall nokogiri.

Run these commands in order:

gem install nokogiri -v '1.6.6.4'
gem install rails
gem install nokogiri -v '1.6.8.rc3'

Then, open your Gemfile and add

gem 'nokogiri', '>=1.6.8.rc3'

Then run

bundle install
bundle update

This is the solution of user okeyparking, not mine. I recommend you to read the thread too.

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