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
How to View a Sample of the Call Stack in Ruby
How to Expire a View Cached Fragment from Console
Rails Before_Filter for Specific Actions in Controller
What Happens When Modifying Gemfile.Lock Directly
Set the Display Precision of a Float in Ruby
Ruby: How to "Require" a File from the Current Working Dir
Devise Skip_Confirmation! Fails to Avoid to Send the Confirmation Instructions
Run Rails Commands Outside of Console
How to Find a Devise User by It's Session Id
How to Get My Aws Lambda to Access Gems Stored in Vendor/Bundle
Rspec Stubbing Method for Only Specific Arguments
Passenger Installation with Nginx Fails
How to Escape Strings for Terminal in Ruby
Rails Can't Login to Postgresql - Pg::Error - Password - Correct Info
Why Is Ruby's Date Class Automatically Loaded But Datetime Is Not
How to Turn a Ruby Method into a Block
Why Is This Permissions Error Occurring with Mod_Passenger.So
How to Expect Some (But Not All) Arguments with Rspec Should_Receive