Problems with "scruffy"

  • Thread starter Andrés Suárez
  • Start date
A

Andrés Suárez

Hi,

I've the last one-click installer and the scruffy gem. And if I try to
run this example script:

require 'rubygems'
require 'scruffy'

graph = Scruffy::Graph.new
graph.title = "Favourite Snacks"
graph.renderer = Scruffy::Renderers::pie.new

graph.add :pie, '', {
'Apple' => 20,
'Banana' => 100,
'Orange' => 70,
'Taco' => 30
}

graph.render :to => "pie_test.svg"
graph.render :width => 300, :height => 200,
:to => "pie_test.png", :as => 'png'
-------------------

but I've obtained the next error:

c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
`report_activate_error': Could
not find RubyGem builder (>= 2.0) (Gem::LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:134:in
`activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:49:in `gem'
from
c:/ruby/lib/ruby/gems/1.8/gems/scruffy-0.2.5/lib/scruffy.rb:18
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `re
quire'
from scruffy_petete.rb:2
shell returned 1
------------

Where is the problem?

Regards,
Andrés
 
A

Andrés Suárez

Thanks Michael, I didn't know that "builder" was a gem. Now the error
has changed: I've to install RMagick :D

Regards,
Andrés
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top