I\'ve tried to install Nokogiri 1.6.1 under Ruby and RVM but is failing with the following error:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build
You can try the solution which I used so far to fix the same...
Remove all older libxml-ruby and nokogiri
use below command for the same
sudo gem uninstall nokogiri libxml-ruby
then you can try out the version of nokogiri, was having issue. THat should works perfect.
sudo gem install nokogiri -v '1.6.1'
Much similar answer reported by Dan but some little bit change. Thanks.