rvmを試してみます
3645 ワード
rvmを試してみます
アイテムグラード山の日記 アイテムグラード山のホームページ 放送 アルバム 好きです 中古 アクティブ 豆を郵便で送る rvmを試してみます
2011-01-12 21:15:25
アイテムグラード山の日記
2011-01-12 21:15:25
rvm
Ruby Version Manager (RVM)
http://rvm.beginrescueend.com
rvm
>
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
> shell
$ emacs ~/.bashrc
#
#[ -z "$PS1" ] && return
if [ -n "$PS1" ] ; then
#
fi
#
[ -s "$HOME/.rvm/scripts/rvm" ] && source "$HOME/.rvm/scripts/rvm"
>
$rvm -v
rvm 1.2.1 by Wayne E. Seguin ......
rvm
> jruby
$ rvm install jruby-1.5.6
jruby-1.5.6 - #fetching
jruby-1.5.6 - #downloading jruby-bin-1.5.6, this may take a while depending on
...
Successfully installed jruby-launcher-1.0.5-java
1 gem installed
Installing ri documentation for jruby-launcher-1.0.5-java...
Installing RDoc documentation for jruby-launcher-1.0.5-java...
> ruby
$ ruby -v
ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]
> shell jruby
$ rvm use jruby-1.5.6
Using /home/itang/.rvm/gems/jruby-1.5.6
$ ruby -v
jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2010-12-03 9cf97c3) (Java HotSpot(TM) Client VM 1.6.0_22) [i386-java]
$ which ruby
/home/itang/.rvm/rubies/jruby-1.5.6/bin/ruby
>
$ rvm system
$ ruby -v
ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]
$ which ruby
/usr/local/bin/ruby
> jruby ruby ( shell )
$ rvm --default use jruby-1.5.6
Using /home/itang/.rvm/gems/jruby-1.5.6
> shell
$ which ruby
/home/itang/.rvm/rubies/jruby-1.5.6/bin/ruby
>jruby rake
$ which gem
/home/itang/.rvm/rubies/jruby-1.5.6/bin/gem
$ gem install rake
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
$ gem list
*** LOCAL GEMS ***
bouncy-castle-java (1.5.0145.2)
jruby-launcher (1.0.5)
jruby-openssl (0.7.2)
rake (0.8.7)
> ruby ,
$ rvm reset
$ which ruby
/usr/local/bin/ruby
rvm
: Upgrading to the latest gem
$ rvm update
$ rvm reload
: Upgrading to the latest repository source
$ rvm get head
$ rvm reload