Ok. I just opened Textmate and hit File -> New From Template -> Ruby -> Ruby Script. This opened a new file with some predefined commenting at the top. I simply put in puts "Hello World!" to test. I went to bundles -> ruby -> run script and I get a blue box. At the top i still have the missing cat command. Then in a light blue box it says it ran RubyMate r3391 running Ruby v1.8.4 and ran my untitled document. In another light blue box, it says Program Exited normally. At the end it shows the missing rm command error. At the bottome of the document it shows I am using the Ruby language setting.
On Jul 27, 2006, at 11:16 PM, Charilaos Skiadas wrote:
On Jul 27, 2006, at 7:29 PM, Frank Moda III wrote:
Hi, I recently got interested in starting to learn ruby. Since then I have done a few things. I have installed the newest ruby (1.8.4) to my /usr/local/bin/ . I also learned about TextMate, so I went and downloaded it. I played around with it and noticed that i could run the ruby script within textmate using Run Script. However, when I do this, i get two errors. One is /bin/ bash: line 3: cat: command not found. This is at the beginning. After it says program exited normally, it says /bin/bash: line 8: rm: command not found. Also, it doesn't show any of the script as having run normally (didn't output anything). Does anyone know whats wrong? Thanks!
Looks like your script is executed as a shell script instead of a ruby script. What is the first line in the script? What is the language setting for the document (should be appearing at the bottom of the window.) Also try to run the "run script" command from the Ruby bundle, instead of using its shortcut.
Haris
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate