環境はRuby 1.9.3 / Ubuntu 13.04。
$ sudo gem install scrubyt
ERROR: Error installing scrubyt:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
mkmfがないといわれてる。
$ apt-cache search mkmfいれてみる。
ruby-dev - Header files for compiling extension modules for Ruby (default version)
ruby1.8-dev - Header files for compiling extension modules for the Ruby 1.8
ruby1.9.1-dev - Header files for compiling extension modules for the Ruby 1.9.1
ruby-mkrf - Ruby library generating Rakefiles to build C extensions to Ruby
$ sudo apt-get install ruby-dev再チャレンジ。
$ sudo gem install scrubyt
ERROR: Error installing scrubyt:Oooops。。
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 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 ***
案外多かったので割愛しますが
怒られた順に以下のものを入れていったらインストール成功
$ sudo apt-get install libxml2-dev
$ sudo apt-get install libxslt-dev
$ sudo apt-get install g++