python ruby perl で複数のバージョンを使い分ける

$ rvm update --head

してみて git が無いと怒られて思い出した。

そういえば、「hg があればいいよね。」と思ったのだ。

Plack 周りを触ってみたかったので、perlbrew を利用して、perl-5.12.0 をインストールした。

perlbrew - 0.04

$ curl -L http://cpanmin.us/ | perl - App::cpanminus local::lib App::perlbrew
$ echo "source /Users/zunermuka/perl5/perlbrew/etc/bashrc" >> ~/.bashrc

/Users/zunermuka/perl5/perlbrew配下が 700 で error が出た。この環境だけなんだろうか。

$ chmod 755 /Users/zunermuka/perl5/perlbrew/
$ perlbrew init
$ perlbrew install perl-5.12.0
$ perlbrew switch perl-5.12.0
$ perl -v
This is perl 5, version 12, subversion 0 (v5.12.0) built for darwin-2level

Copyright 1987-2010, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
$ cpanm Task::Plack

cpanm であれこれ入れて動かしてみる。便利すぎる。ありがとうございます。

こうなると Leopard の Macports で perl-5.8.9 に依存してしまった部分がなにかと煩わしい。依存関係をまとめて Macports から uninstall。

git-core も消えた。

今どき git がないのは辛いのだな。

Macports で追加する事はしたくなかったので、
http://code.google.com/p/git-osx-installer/ を利用させてもらうことにした。安易です。

.bashrc に以下を追加。

test -d /usr/local/git && export PATH=/usr/local/git/bin:$PATH &&
export MANPATH=/usr/local/git/share/man:$MANPATH

$ rvm update --head
rvm 0.1.28 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]

remote: Counting objects: 13, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 5), reused 0 (delta 0)
Unpacking objects: 100% (8/8), done.
From git://github.com/wayneeseguin/rvm
* branch master -> FETCH_HEAD
Updating 9a5916a..b7b9ec8
Fast-forward
config/db | 2 +-
scripts/install | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

RVM - shell scripts which allow management of multiple ruby interpreters and environments.

RTFM: http://rvm.beginrescueend.com/

HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)

********************************************************************************
* Upgrading the RVM installation in /Users/zunermuka/.rvm/
********************************************************************************

zunermuka,


Thank you for using rvm. I hope that it makes your work easier and more enjoyable.
If you have any questions, issues and/or ideas for improvement please hop in #rvm on irc.freenode.net and let me know.
My irc nickname is 'wayneeseguin' and I hang out from ~09:00-17:00EST and again from ~21:00EST-~00:00EST.
If I do not respond right away, please hang around after asking your question, I will respond as soon as I am back.
Be sure to get head often as rvm development happens fast, you can do this by typing 'rvm update --head'.

w⦿‿⦿t!

~ Wayne

********************************************************************************

**** NOTICE *************************************************************************************
* Gemset separator has changed, it is now @ and will remain unless any rubies error using it. *
* If you encounter any issues with a ruby your best bet is to 'rvm remove X ; rvm install X' *
*************************************************************************************************

Upgrade of RVM in /Users/zunermuka/.rvm/ is complete.
戻った。

python,ruby,perl で複数のバージョンを使い分けたい場合はこんな感じ。良い時代です。

python python_select

$ python_select -l
Available versions:
current none python24 python25 python25-apple python26 python31

ruby rvm

$ rvm list

rvm Rubies

ruby-1.8.6-p369 [ i386 ]
ruby-1.8.7-p174 [ i386 ]
ruby-1.8.7-p249 [ i386 ]
ruby-1.9.2-preview1 [ i386 ]

System Ruby

system [ i386 ]

ruby ruby-tapper

perl perlbrew

$ perlbrew installed
perl-5.12.0(*)

コメント

このブログの人気の投稿

[memo] LibreOffice バージョン: 5.2.6.2 Calc でエラーがでた BASIC を読み込む際の エラー:一般的なエラー.一般的な I/O エラー。

Amazonプライム会員の無料体験から継続しない手続きをする際「自動移行しない」が表示されないので悩んだ。(結果として自動更新をキャンセルする事ができました)

[memo] go get でインストールしたが利用しなくなったパッケージを削除する