textmate上でrvmでいれたrubyを動かしたいんです。

Ruby  Add comments
hatena textmate上でrvmでいれたrubyを動かしたいんです。
 textmate上でrvmでいれたrubyを動かしたいんです。
facebook textmate上でrvmでいれたrubyを動かしたいんです。
google buzz textmate上でrvmでいれたrubyを動かしたいんです。
yahoo textmate上でrvmでいれたrubyを動かしたいんです。
livedoor textmate上でrvmでいれたrubyを動かしたいんです。
 textmate上でrvmでいれたrubyを動かしたいんです。
friendfeed textmate上でrvmでいれたrubyを動かしたいんです。

textmateでちょこっとしたスクリプトを確認したい。でも古いのはいや、rvmでいれた最新のrubyで確認したいんです。と思い立ったわけでありまして。
ということでターミナルから何を入れたか確認

[narju@macbookpro] # rvm list
rvm rubies
ruby-1.8.7-p249 [ x86_64 ]
ruby-1.9.1-p378 [ x86_64 ]
ruby-1.9.2-head [ x86_64 ]
=> ruby-1.9.2-p0 [ x86_64 ]

1.9.2をつかいたいんです。

[narju@macbookpro] # rvm wrapper ruby-1.9.2-p0 textmate

追記
[narju@macbookpro] # rvm wrapper ruby-1.9.2-p0@rails3 textmate
とか@gemset名でgemset認識します。

次に環境設定からShell Variablesの設定
tmruby textmate上でrvmでいれたrubyを動かしたいんです。
Variables:TM_RUBY
Value:/Users/アカウント名/.rvm/bin/textmate_ruby

[narju@macbookpro] # cd /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
[narju@macbookpro] # mv Builder.rb Builder.rb.bk

TextMateを再起動後
適当にコードを書いて
testrb textmate上でrvmでいれたrubyを動かしたいんです。
cmd+Rで実行
test textmate上でrvmでいれたrubyを動かしたいんです。
ちゃんと1.9.2p0ってでてますね。ありがたいことです。

ちなみに実行時に
process.rb `fcntl’ Inappropriate ioctl for device Errno ENOTTY from
見たいなエラーがでたのですが64bitで動かしてると出るそうです。
http://wiki.macromates.com/Troubleshooting/SnowLeopard
該当行をコメントアウトで動きました。ヒーハー。

関連記事

One Response to “textmate上でrvmでいれたrubyを動かしたいんです。”

  1. Tweets that mention textmate上でrvmでいれたrubyを動かしたいんです。 | Narju.com -- Topsy.com Says:

    [...] This post was mentioned on Twitter by Rubyist Bot, narju. narju said: [narju.com]: textmate上でrvmでいれたrubyを動かしたいんです。 http://narju.com/2010/09/1146.html [...]

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS