Hey!
I have a strange problem. When developing with Ruby on Windows Xp, if I try to run the .rb file with
ruby mycode.rb
The execution stops returning:
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/sdl.so: [BUG] Segmentation fault
Of course, /usr makes no sense in windows.
On the other hand, if I simply double-click mycode.rb from the explorer, or type
mycode.rb
on CMD, without the ruby part, it works.
The thing is that I am not able to use any IDE that way!
It's quite sad to finish writing the code and then go searching for the file in the explorer to double-click it, instead of hitting Run!
Thanks in advance
- EDIT -
As I finished posted the thread, I found the problem.
When writing
ruby myfile.rb
the ruby interpreter that was launched was the one which came with Cygwin. That's why it couldn't find the lib.
I updated my PATH, and done.