I have a problem with my pdf-writer-1.1.3 installation. When type
require “pdf/writer” in the console i get the following error:
TypeError: Color is not a module
from
/usr/local/lib/ruby/gems/1.8/gems/color-tools-1.3.0/lib/color.rb:49
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from /usr/local/lib/ruby/gems/1.8/gems/pdf-writer-1.1.3/lib/pdf/writer.rb:15 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
gem_original_require’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require’
from (irb):2
My version is:
ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.1]
*** LOCAL GEMS ***
actionmailer (1.3.3, 1.3.2, 1.3.1, 1.2.5, 1.2.1)
Service layer for easy email delivery and testing.
actionpack (1.13.3, 1.13.2, 1.13.1, 1.12.5, 1.12.1)
Web-flow and rendering framework putting the VC in MVC.
actionwebservice (1.2.3, 1.2.2, 1.2.1, 1.1.6, 1.1.2)
Web service support for Action Pack.
activerecord (1.15.3, 1.15.2, 1.15.1, 1.14.4, 1.14.2)
Implements the ActiveRecord pattern for ORM.
activesupport (1.4.2, 1.4.1, 1.4.0, 1.3.1)
Support and utility classes used by the Rails framework.
captcha (0.1.2)
Ruby/CAPTCHA is an implementation of the ‘Completely Automated
Public Turing Test to Tell Computers and Humans Apart’.
color-tools (1.3.0)
color-tools provides colour space definition and manpiulation as
well as commonly named RGB colours.
googlecalendar (0.0.2)
Google C. api for Ruby
mime-types (1.15)
Manages a MIME Content-Type that will return the Content-Type for a
given filename.
pdf-writer (1.1.3)
A pure Ruby PDF document creation library.
railroad (0.3.4)
A DOT diagram generator for Ruby on Rail applications
rails (1.2.3, 1.2.2, 1.2.1, 1.1.6, 1.1.2)
Web-application framework with template engine, control-flow layer,
and ORM.
rake (0.7.2, 0.7.1)
Ruby based make-like utility.
RedCloth (3.0.3)
RedCloth is a module for using Textile and Markdown in Ruby. Textile
and Markdown are text formats. A very simple text format. Another
stab at making readable text that can be converted to HTML.
rmagick (1.12.0)
RMagick is an interface between the Ruby programming language and
the ImageMagick and GraphicsMagick image processing libraries.
ruby-openid (1.1.4)
A library for consuming and serving OpenID identities.
ruby-yadis (0.3.4)
A library for performing Yadis service discovery
rubygems-update (0.9.2)
RubyGems Update GEM
sources (0.0.1)
This package provides download sources for remote gem installation
transaction-simple (1.3.0)
Simple object transaction support for Ruby.