English version of http://codnote.net/ . But my english is usually strange.

Friday, March 26, 2010

yet another `rvm`.. ruby-tapper

Are you using rvm?

Ruby version manager

rvm is a contraction of "Ruby Version Manager".

It makes can switch rubies easy.

Like this:

% rvm install 1.9.1
% rvm 1.9.1
% rvm install 1.8.7
% rvm 1.8.7

rvm switches $PATH and $GEM_HOME.

But... rvm is very intricate, it's not easy.

So I made ruby-tapper.

ruby-tapper

ruby-tapper is very easy.

Install

HINT: ~/opt/ruby-tapper is example.

% git clone git://github.com/sorah/ruby-tapper ~/opt/ruby-tapper

Then add ~/opt/ruby-tapper/bin to your shell's $PATH.

Setup

HINT: ~/rubies is example.

HINT: rbt is command of ruby-tapper.

% mkdir ~/rubies
% rbt --rubies ~/rubies

Add ~/rubies/bin and ~/rubies/gem/bin to your shell's $PATH.

And set ~/rubies/gem to your shell's $GEM_HOME.

Add tapper

rvm can install rubies automatic, but ruby-tapper cannot.

  • First, download source code of ruby.
  • Then, run ./configure --prefix=$HOME/rubies/{ruby-version} to configure ruby.
  • Last, run make && make install to install to tapper.

Use

Tapper name is directory in ~/rubies

About Me

My photo
A Ruby Committer. http://twitter.com/sora_h http://sorah.cosmio.net/

Followers