Rails bundler 安装 Nokogiri (1.5.5) 时出错,Bundler 无法继续

Rails bundler 安装 Nokogiri (1.5.5) 时出错,Bundler 无法继续

安装 nokogiri (1.5.5) 时发生错误,Bundler 无法继续

如何修复并克服错误?

Installing nokogiri (1.5.5) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.8 extconf.rb 
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... no
-----
libxslt is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.

答案1

答案是:

sudo apt-get install libxslt-dev 

相关内容