I also had the same problem with rvm, although I did the following according to the documentation:
sudo apt-get install libxslt-dev libxml2-devrvm pkg libxml2 and rvm pkg libxslt
The only way I could solve this problem was after a lengthy investigation:
- Remove ruby ββinstallation:
rvm remove 1.9.3 - Remove all
libxslt* and libxml2* libs from ~/.rvm/usr/lib if you previously did rvm pkg ... - Reinstall ruby:
rvm install 1.9.3
Reinstalling after apt-get commands seems to be the only way to get this to work. It also provides support for libs installed using rvm pkg dont intere.
When all else fails ...
If all else fails and you absolutely need the installed pearls, you can also rebuild nokogiri by applying a simple patch - provided that you have all the build tools, and with the caution that this will install the latest and potentially unstable code:
git clone git://github.com/sparklemotion/nokogiri- get the patch from this value and save it as
x86_64.patch in the nokogiri folder. - Apply patch:
patch -p1 < x86_64.patch - Rebuild:
rake native gem - this should build a gem in the pkg/ folder - Install the gem using
gem install pkg/nokogiri-<version>-x86_64-linux.gem
Sebastien le callonnec
source share