To install nokogiri gem you first need to install libxslt-dev and libxml2-dev
sudo apt-get install libxslt-dev libxml2-dev
And then install nokogiri gem
sudo gem install nokogiri
Then you need to install the package
bundle install
Last but not least, the installed pearls must be defined in your gemfile
gem 'nokogiri'
These steps worked flawlessly for me.
source share