[TxMt] ruby not found error

Sune Foldager cryo at cyanite.org
Thu Jan 27 12:38:47 UTC 2005


On 27. jan 2005, at 13:15, David Casal wrote:

> Hello all,
>
> Stupid question here...I have:
>
> ruby /Users/dc/Documents/txt/scripts/todo2log.rb $TM_FILEPATH

It can't locate ruby _here_.. doesn't matter if the shebang is right 
later on (it's not even used). Most likely your ruby-path is setup in 
~/.bash_profile, which is not sourced by TM. A solution that should fix 
everything path-related:

Make a file in your home-dir, say   .bash_env  and have it contain:
source /etc/profile
source ~/.bash_profile

Then set TM's BASH_ENV variable to: ~/.bash_env

That should source all relevant path stuff.

A completely different solution is of course to call the script 
directly:
/Users/dc/Documents/txt/scripts/todo2log.rb $TM_FILEPATH
..it needs to be +x of course, for this to work.

-- 
Sune.
:: the Cottage of Lost Play.
:: http://cyanite.org




More information about the textmate mailing list