[TxMt] Gem that works in Terminal and doesn't work in TextMate
devlist at samuraicoder.net
Mon Apr 21 00:46:23 UTC 2008
I'm trying to make RubyAMP (not hosted at macromates.com) work.
I installed rb-appscript using "sudo gem install rb-appscript", but
when I try to run with TextMate and require it in a script, it shows
me an error "LoadError: no such file to load ― appscript".
In irb, I could get "true" to require 'appscript'
irb(main):003:0> require 'rubygems'
irb(main):004:0> require 'appscript'
My ruby script is as simple as:
and if I run Command-R, it fails to load appscript.
My ruby version is: ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-
gem version is 1.1.1
The gem is installed at `/usr/local/lib/ruby/gems/1.8/gems/rb-
I'm running Mac OS X 10.5.2 on an Intel-based MacBook.
Looks like I need to add a gem path to TextMate(?)
Any help would be appreciated.
More information about the textmate