[BioRuby] installing bio::graphics
Robert Citek
robert.citek at gmail.com
Thu Mar 6 05:21:14 UTC 2008
On Thu, Feb 14, 2008 at 10:30 PM, jan aerts (RI) <jan.aerts at bbsrc.ac.uk> wrote:
> Does this help: http://ericbeland.com/2007/12/20/uninitialized-constant-gem-gemrunner ?
Thanks, Jan. That made gem work. Complete notes here:
http://ubuntuforums.org/showthread.php?p=4462021#post4462021
Now on to bio-graphics:
$ sudo apt-get install libpango1-ruby libcairo-ruby
$ sudo gem install bio
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed bio-1.2.1
1 gem installed
$ sudo gem install bio-graphics
Successfully installed bio-graphics-1.4
1 gem installed
Installing ri documentation for bio-graphics-1.4...
Installing RDoc documentation for bio-graphics-1.4...
$ gem list
*** LOCAL GEMS ***
bio (1.2.1)
bio-graphics (1.4)
rubygems-update (1.0.1)
So far so good. But I don't understand the following results:
$ true ; ( set -x
ruby -e "p 'hello'"
ruby -rbio -e "p 'hello'"
ruby -e "require 'bio'; puts 'hello' "
export RUBYOPT=rubygems
ruby -e "require 'bio'; puts 'hello' "
ruby -e "require 'bio'; require 'bio-graphics' ; puts 'hello' "
ruby -rbio -e "p 'hello'"
) >& output.txt
$ cat output.txt
+ ruby -e 'p '\''hello'\'''
"hello"
+ ruby -rbio -e 'p '\''hello'\'''
ruby: no such file to load -- bio (LoadError)
+ ruby -e 'require '\''bio'\''; puts '\''hello'\'' '
-e:1:in `require': no such file to load -- bio (LoadError)
from -e:1
+ export RUBYOPT=rubygems
+ RUBYOPT=rubygems
+ ruby -e 'require '\''bio'\''; puts '\''hello'\'' '
hello
+ ruby -e 'require '\''bio'\''; require '\''bio-graphics'\'' ; puts
'\''hello'\'' '
hello
+ ruby -rbio -e 'p '\''hello'\'''
ruby: no such file to load -- bio (LoadError)
So, the good new is that it seems as though I now have bio-graphics installed.
Now the question I have is, is there any reason why the -r option
does not seem to work as expected, i.e. doesn't load the bio library?
Regards,
- Robert
More information about the BioRuby
mailing list