On Jun 12, 2006, at 10:04 AM, Allan Odgaard wrote:
On 12/6/2006, at 2:28, Ryan King wrote:
Any clue on the cause?
It would help if you tell us what script this is, what version of Ruby you have, and whether erb is located in your computer somewhere.
It's the TODO package. [...] I get /usr/local/lib/ruby/1.8/erb.rb.
My ruby is in /usr/local, not /usr, but that shouldn't cause any problems.
That probably is the problem, as the TODO will find your Ruby 1.6 which lacks ERb.
See the paragraph starting with ‘Important’ here [1] and follow instructions, or alternatively create a symlink or similar from / usr/bin/ruby to Ruby 1.8 (and remove 1.6.)
Alright, I've removed my old copy of ruby in /usr/bin and did the environment changes, and only then would things work.
This bring up a question, though. In Textmate, I'd set PATH = "/usr/ local/bin:/usr/bin" (via Preferences -> advanced -> shell variables).
Shouldn't this take precedence?
-ryan