I use Windows 10 x64, Ruby 2.2.3, Rails 5.0.1.
I installed nokogiri outside of my Rails application and completed a script without errors. Now I'm trying to run it inside my application and bundle is failing.
bundle
"Errno::EACCES: Permission denied @ rb_sysopen -
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.7.0.1-x64-mingw32/lib/nokogiri/2.2/nokogiri.so
An error occurred while installing nokogiri (1.7.0.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.7.0.1'` succeeds before bundling."
gem install nokogiri -v '1.7.0.1'
" ERROR: While executing gem ... (Errno::EACCES)
Permission denied @rb_sysopen - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.7.0.1-x64-mingw32/lib/nokogiri/2.2/nokogiri.so"
gem install nokogiri -v '1.7.0.0'
Installs succesfully
Now I have gem 'nokogiri', '= 1.7.0.0'
bundle update
And now it has no errors.
Not sure if this is something on my end or nokogiri's but I'll see if this version will keep working for me.