Nokogiri gem installation error with spree

不羁的心 提交于 2019-12-05 15:02:08

So here's what solved my problem. I created a new gemset i.e

rvm gemset create nokogiri
rvm use ruby-2.0.0-p353@nokogiri

Note: I'm using rvm and ruby 2.0.0. Then I made sure I've got necessary lib installed by running

sudo apt-get install  libxml2-dev libxslt-dev

The libraries happened to be already installed. Then I installed nokogiri

gem install nokogiri -v '1.6.1'

It installed successfully. And finally ran bundle install to get all my gems. Hope this helps anyone having the same issue.

Check the RVM gemset. I fixed it by restoring the gemset. If you try upgrading to 4.0.2? I used Nokogiri 1.6.1 with Ruby 2.0.0 and Rails 4.0.2

try this

sudo apt-get install ruby-dev
sudo apt-get install libxml2 libxml2-dev libxslt1-dev


and reinstall nokogiri

sudo gem install nokogiri
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!