PDF-WriterをRubyGemsでインストールしてみる。
参考:http://jp.rubyist.net/magazine/?0010-PackageManagement
パッケージの検索
$ gem search --remote pdf-writerパッケージのインストールREMOTE GEMS ***
Updating Gem source index for: http://gems.rubyforge.org pdf-writer (1.1.3, 1.1.2, 1.1.1, 1.1.0, 1.0.1, 1.0.0) A pure Ruby PDF document creation library.$ sudo gem install pdf-writer Password: Attempting local installation of 'pdf-writer' -> Local installation can't proceed due to LoadError: Could not find RubyGem color-tools (~> 1.3) Attempting remote installation of 'pdf-writer' Updating Gem source index for: http://gems.rubyforge.org Install required dependency color-tools? [Yn] y Install required dependency transaction-simple? [Yn] y Successfully installed pdf-writer-1.1.3 Successfully installed color-tools-1.3.0 Successfully installed transaction-simple-1.3.0 Installing RDoc documentation for pdf-writer-1.1.3... Installing RDoc documentation for color-tools-1.3.0... Installing RDoc documentation for transaction-simple-1.3.0...RubyGemsでインストールしたモジュールを使うにはまずrequire "rubygems"する必要がある。(他にも方法があるようだが)Creating Printable Documents with Ruby
http://www.artima.com/rubycs/articles/pdf_writer.html