OpenSolaris2009.06へrvmの導入

 メタプログラミングRubyを購入したので早速実行ですが、一つ問題がw


 ん〜、Ruby1.9ベースで動くらしいので、環境を1.9で試したいのですが手元にはない*1です。
ので、rvm弄るという目的といっしょにためしてみます。


All about Ruby on Rails & Data recovery software


で、本家サイトのインストール手順より

install rvm

$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
106   426  106   426    0     0   1511      0 --:--:-- --:--:-- --:--:--  3021
Initialized empty Git repository in /export/home/andy/.rvm/src/rvm/.git/
remote: Counting objects: 15208, done.
remote: Compressing objects: 100% (4055/4055), done.
remote: Total 15208 (delta 10265), reused 14591 (delta 9773)
Receiving objects: 100% (15208/15208), 2.65 MiB | 278 KiB/s, done.
Resolving deltas: 100% (10265/10265), done.
awk: syntax error near line 1
awk: bailing out near line 1
scripts/utility: line 600: grep: No such file or directory
scripts/utility: line 762: mkdir: No such file or directory

 ん、エラーだw;
該当箇所をチェックしてみるか。

$ emacs ~/.rvm/src/rvm/scripts/utility

600行目をみてると

# Add bin path if not present
__rvm_conditionally_add_bin_path()
{
  if printf "${PATH//:/ }" | \grep -vqF "${rvm_bin_path:-"$rvm_path/bin"} " ; then #<=600行

    case "${rvm_ruby_string:-"system"}" in
      system)

 ん、grepで詰まってるってことは、$rvm_pathが未定義?*2でエラーかな?
試しに、パス定義しておいてみるか。

$ export rvm_path=~/.rvm/src/rvm


 で、試してみたが結果かわらずwww
あきらめて、gemで入れておくか?

*1:OpenSolaris 2009.06は1.8.7ですね。DTrace対応の1.9がでればいいんですけど^^

*2:んなもの、定義されているわけないけどね^^