[TxMt] Gem that works in Terminal and doesn't work in TextMate

Takaaki Kato 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'
=> true
irb(main):004:0> require 'appscript'
=> true

My ruby script is as simple as:

p require('rubygems')

p require('appscript')

and if I run Command-R, it fails to load appscript.

The script

require 'rubygems'
puts Gem.path



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.

Takaaki Kato

More information about the textmate mailing list