[BUG] Segmentation fault

Reply

Join Date: Sep 2009
Posts: 1
Reputation: theGraffo is an unknown quantity at this point 
Solved Threads: 0
theGraffo theGraffo is offline Offline
Newbie Poster

[Solved] Segmentation fault

 
0
  #1
Sep 12th, 2009
Hey!

I have a strange problem. When developing with Ruby on Windows Xp, if I try to run the .rb file with
  1. ruby mycode.rb
The execution stops returning:
  1. /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
  1. 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
  1. 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.
Last edited by theGraffo; Sep 12th, 2009 at 11:10 am. Reason: Error solved
Reply With Quote Quick reply to this message  
Reply

Tags
ruby, sdl, segmentationerror

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC