Rails にnokogiriをインストールに失敗したときの対応
こんな感じのエラーで失敗した
Installing nokogiri (1.4.3.1) with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem nati/usr/bin/ruby1.8 extconf.rb
checking for libxml/parser.h... no
-
-
-
- -
-
-
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-
-
-
- -
-
-
extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
libxslt-dev をインストールして対応
> sudo apt-get install libxslt-dev