我正在尝试在我的新 ubuntu 机器上设置 rails env。但是我在安装 nokogiri gem 时遇到了麻烦。我已经安装了 libxslt 和 libxml2 libs thourgh rvm pkg 命令以及使用 apt-get。我认为它向我显示 libxslt is missing 错误。
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/home/hacker5/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb --with-xslt-include=/usr/include/libxslt
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... yes
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... no
-----
libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
编辑
我正在使用 rvm 设置和 ruby 1.9.3