Nathaniel Brown
2009-Mar-07 20:03 UTC
[rspec-users] [rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems
I get the following error using both edge version of the TM bundle and rspec/rspec-rails in vendor/plugins. /Users/nshb/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require'': No such file to load -- rubygems (LoadError) from /Users/nshb/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2 from /tmp/textmate-command-20424.rb:2:in `require'' from /tmp/textmate- command-20424.rb:2 Any ideas? IRB loads rubygems fine, not sure why it''s not working here.
David Chelimsky
2009-Mar-13 04:44 UTC
[rspec-users] [rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems
On Sat, Mar 7, 2009 at 3:03 PM, Nathaniel Brown <nshb at inimit.com> wrote:> I get the following error using both edge version of the TM bundle and > rspec/rspec-rails in vendor/plugins. > > /Users/nshb/Library/Application Support/TextMate/Bundles/ > RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require'': No such file > to load -- rubygems (LoadError) from /Users/nshb/Library/Application > Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2 > from /tmp/textmate-command-20424.rb:2:in `require'' from /tmp/textmate- > command-20424.rb:2 > > Any ideas? IRB loads rubygems fine, not sure why it''s not working here.I''ve never seen that before - no ideas here. Anybody else?
Scott Taylor
2009-Mar-13 07:17 UTC
[rspec-users] [rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems
David Chelimsky wrote:> On Sat, Mar 7, 2009 at 3:03 PM, Nathaniel Brown <nshb at inimit.com> wrote: > >> I get the following error using both edge version of the TM bundle and >> rspec/rspec-rails in vendor/plugins. >> >> /Users/nshb/Library/Application Support/TextMate/Bundles/ >> RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require'': No such file >> to load -- rubygems (LoadError) from /Users/nshb/Library/Application >> Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2 >> from /tmp/textmate-command-20424.rb:2:in `require'' from /tmp/textmate- >> command-20424.rb:2 >> >> Any ideas? IRB loads rubygems fine, not sure why it''s not working here. >> > > I''ve never seen that before - no ideas here. Anybody else? >I don''t use textmate at all, but I''d check that it''s the same ruby version (RUBY_VERSION, RUBY_PATCHLEVEL), and that the $LOAD_PATH is the same as an irb session. How is ruby being invoked in that script? I prefer to use "/usr/bin/env ruby", but on occasion I''ve seen absolute paths to /usr/bin/ruby or /usr/local/bin/ruby - both which may fail if you have, say, a ruby installed via macports and the one that came with OS X. I''d bet that a different ruby executable is being used - one which doesn''t have rubygems installed. Scott> _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >