Installation

RubyGems
If your system supports the RubyGems package manager (User guide), just type

% sudo gem install bio

to install or

% sudo gem update bio

to update the BioRuby library (See also an example session in BioRubyOnRails).

In these cases, please make sure that your script also requires 'rubygems' library.

require'rubygems' require 'bio'
 * 1) !/usr/bin/env ruby

Linux
If you need to install BioRuby from the source code distribution, obtain the latest package from the archive.

In the bioruby source directory (such as bioruby-x.x.x/), run setup.rb as follows:

% su
 * 1) ruby setup.rb

Mac OS X
Mac OS X 10.5 (Leopard) comes with RubyGems (and Ruby on Rails), so it is recommended to use them.

If you need to install from the source code distribution, use the following commands in the source code directory. See instructions in the Linux section above to obtain the source code distribution.

% sudo ruby setup.rb

Windows
Using the gem package is recommended.

BioRuby 1.2.1 or older version
In BioRuby 1.2.1 or older version, see Installation before 1.2.1.