2010/05/20  |  Written by  |  under Blog

まあたいしたことではなく、単にシェルスクリプトを使うだけです。例えばTokyoCabine Ruby APIだと、

1
2
3
% ruby extconf.rb
% make
% sudo make install

などとするわけですが、これを下記のように実行すれば、それぞれのRubyにインストールされます。

1
2
3
for version in ree ree-1.8.6 1.8.6 1.8.7 1.9.1; \
  do rvm use $version; make clean; ruby extconf.rb; make; make install; \
done
 
このエントリーを含むはてなブックマークはてなブックマーク - rvmで拡張ライブラリを複数のRubyにインストールする方法 この記事をクリップ!Livedoorクリップ - rvmで拡張ライブラリを複数のRubyにインストールする方法 Googleブックマークに追加 Digg This
Tags: , , ,

No Responses so far | Have Your Say!

Leave a Feedback

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">