ruby-switch(1)

ruby-switch1

Switch between different ruby interpreters

Usage

ruby-switch --list

ruby-switch --check

ruby-switch --set RUBYVERSION

ruby-switch --auto

Overview

ruby-switch can be used to easily switch to different Ruby interpreters as the default system-wide interpreter for your Debian system.

When run with --list, all supported Ruby interpreters are listed.

When --check is passed, ruby-switch will check which Ruby interpreter is currently being used. If the settings are inconsistent -- e.g.
`ruby` is Ruby 1.8 and `gem` is using Ruby 1.9.1, ruby-switch will issue a big warning.

When --set RUBYINTERPRETER is used ruby-switch will switch your system to the corresponding Ruby interpreter. This includes, for example, the default implementations for the following programs: ruby, gem, irb, erb, testrb, rdoc, ri.

ruby-switch --set auto will make your system use the default Ruby interpreter currently suggested by Debian.

Options

-h, --help

Displays the help and exits.

A NOTE ON RUBY 1.9.x

Ruby uses two parallel versioning schemes: the `Ruby library compatibility version' (1.9.1 at the time of writing this), which is similar to a library SONAME, and the `Ruby version' (1.9.3 is about to be released at the time of writing).

Ruby packages in Debian are named using the Ruby library compatibility version, which is sometimes confusing for users who do not follow Ruby development closely.

ruby-switch also uses the Ruby library compatibility version, so specifying `ruby1.9.1' might give you Ruby with version 1.9.2, or with version 1.9.3, depending on the current Ruby version of the `ruby1.9.1' package.

From ruby-switch 0.1.0 in Debian 7 (Wheezy). Parsed by carta from the page's man source.