[BioRuby] installing bio::graphics

Robert Citek robert.citek at gmail.com
Thu Feb 14 17:00:15 UTC 2008


Hello all,

I'm trying to install the Bio::Graphics package for Ruby:

  http://bio-graphics.rubyforge.org/

The site has instructions for installing under Ubuntu:

    * gem install bio
    * sudo apt-get install libcairo-ruby

While I can get libcairo-ruby to install, I'm getting an error with using gem:

$ sudo apt-get install rubygems

$ gem install bio
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /var/lib/gems/1.8/cache/bio-1.2.1.gem

If I add a sudo, then things seem to work:

$ sudo gem install bio
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed bio-1.2.1

$ sudo gem install bio-graphics
Successfully installed bio-graphics-1.4
Installing ri documentation for bio-graphics-1.4...
Installing RDoc documentation for bio-graphics-1.4...

However, now when I try to run a trimmed down version of the example
on the page, I get an error message:

$ ruby -e "puts 'hello' "
hello

$ ruby -e "require 'bio' ; puts 'hello' "
hello

$ ruby -e "require 'bio-graphics' ; puts 'hello' "
-e:1:in `require': no such file to load -- bio-graphics (LoadError)
        from -e:1

$ ruby -e "require_gem 'bio-graphics'  ; puts 'hello' "
-e:1: undefined method `require_gem' for main:Object (NoMethodError)

$ ruby -e "gem 'bio-graphics' ; puts 'hello' "
-e:1: undefined method `gem' for main:Object (NoMethodError)

Did using gem to install bio and bio-graphics not work?  What am I overlooking?

Regards,
- Robert



More information about the BioRuby mailing list