[TxMt] [Ruby--PATH] no such file to load -- ubygems

Une Bévue yt.mac at free.fr
Fri Dec 1 12:26:10 UTC 2006


Hey all,

I've carefully read the TextMate manual 8.2 search PATH

actually my ~/.profile, ~/.MacOS/environment.plist have the same  
value than the shell i'm using (zsh).

in fact i've writen two ruby scripts to update these files according  
to zsh setup.

then, my PATH hits first /opt/local/bin where is theMacPort Ruby.

when i use a ruby file with the following shebang :

#! /usr/bin/env ruby -wx

from TextMate i get :

/usr/bin/ruby: No such file to load -- ubygems (LoadError)

from terminal :

$ ./myscript.rb

it works as expected.

I think i've miss something to set env vars for TextMate...


but what ???

Yvon



More information about the textmate mailing list