ohho
ohho

Reputation: 51911

How does ruby-install work?

After installation of multiple rubies by ruby-install, how to use a specific installation of ruby? Should a ruby be accessed by absolute path, or depends on some environment path like rvm?

Upvotes: 1

Views: 232

Answers (2)

Stefan
Stefan

Reputation: 114128

You can use postmodern's chruby to change the current Ruby:

chruby 1.9
chruby
 * ruby-1.9.3-p429
   ruby-2.0.0-p195

It also supports auto-switching based on a .ruby-version file.

Upvotes: 1

tadman
tadman

Reputation: 211540

Have you considered using rbenv which wraps around that to provide an rvm-like interface?

Using those directly is not something I'd consider practical.

Upvotes: 0

Related Questions