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
Turned out there is a bit simpler solution:
Remove this line in your ~/.bashrc or ~/.bash_profile file:
~/.bashrc
~/.bash_profile
GREP_OPTIONS="--color=always"
with this one:
export GREP_OPTIONS="--color=auto"
This way you won't need to install any duplicates. Thanks to MrPowers @ Nokogiri Issues.