943,522 Members | Top Members by Rank

Ad:
  • Ruby Discussion Thread
  • Unsolved
  • Views: 3259
  • Ruby RSS
Sep 12th, 2009
0

[Solved] Segmentation fault

Expand Post »
Hey!

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)
  1. ruby mycode.rb
The execution stops returning:
Ruby Syntax (Toggle Plain Text)
  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
Ruby Syntax (Toggle Plain Text)
  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
Ruby Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
theGraffo is offline Offline
1 posts
since Sep 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Ruby Forum Timeline: Compressing Question
Next Thread in Ruby Forum Timeline: Writing a Mad Libs program?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC