[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
Hi,
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
returns
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
gems/1.8
/Library/Ruby/Gems/1.8
My ruby version is: ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-
darwin9.2.0]
gem version is 1.1.1
The gem is installed at `/usr/local/lib/ruby/gems/1.8/gems/rb-
appscript-0.5.1`.
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
--
Takaaki Kato
http://samuraicoder.net
More information about the textmate
mailing list