| | |
[BUG] Segmentation fault
Please support our Ruby advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2009
Posts: 1
Reputation:
Solved Threads: 0
Hey!
I have a strange problem. When developing with Ruby on Windows Xp, if I try to run the .rb file with
The execution stops returning:
Of course, /usr makes no sense in windows.
On the other hand, if I simply double-click mycode.rb from the explorer, or type
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
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.
I have a strange problem. When developing with Ruby on Windows Xp, if I try to run the .rb file with
Ruby Syntax (Toggle Plain Text)
ruby mycode.rb
Ruby Syntax (Toggle Plain Text)
/usr/lib/ruby/site_ruby/1.8/i386-cygwin/sdl.so: [BUG] Segmentation fault
On the other hand, if I simply double-click mycode.rb from the explorer, or type
Ruby Syntax (Toggle Plain Text)
mycode.rb
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 Syntax (Toggle Plain Text)
ruby myfile.rb
I updated my PATH, and done.
Last edited by theGraffo; Sep 12th, 2009 at 11:10 am. Reason: Error solved
![]() |
Similar Threads
- Segmentation Fault (C)
- Segmentation Fault while swapping strings. Runs perfect when compiled with tc complr (C)
- segmentation fault (C)
- Access Violation (Segmentation Fault) + atol (C++)
- unix/C++ segmentation fault (C++)
- what is the best way to track segmentation fault errors (C++)
Other Threads in the Ruby Forum
- Previous Thread: Compressing Question
- Next Thread: Writing a Mad Libs program?
| Thread Tools | Search this Thread |






