TextMate can't find my RSpec gem in opt (from macports)
Posted
by sbwoodside
on Stack Overflow
See other posts from Stack Overflow
or by sbwoodside
Published on 2010-04-07T07:00:46Z
Indexed on
2010/04/07
7:03 UTC
Read the original article
Hit count: 483
I know I've had this problem before so I'm really frustrated.
I've got the Ruby RSpec bundle installed for TextMate, but when I Run Behaviour Description or Run Focused Example I get this wonderful error:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:827:
in `report_activate_error': Could not find RubyGem rspec (>= 1.1.0) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:261:
in `activate' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby
/1.8/rubygems.rb:68:in `gem' from /Users/simon/Library/Application Support/TextMate/Bundles/Ruby
RSpec.tmbundle/Support/lib/spec_mate.rb:13 from /tmp/temp_textmate.oWRPUR:3:in `require'
from /tmp/temp_textmate.oWRPUR:3
(I added linebreaks to make it readable)
I'm using macports so my rspec gem is installed in /opt/local/lib/ruby/gems/1.8/gems/
. Why isn't it finding it?
In Preferences > Advanced > Shell Variables my TM_RUBY
is set to /opt/local/bin/ruby
. I also tried the trick here:
http://dnite.org/2007/8/28/textmate-and-your-environment-variables/
... which didn't do anything.
© Stack Overflow or respective owner