# Ruby samples not working

**URL:** <https://www.ruby-forum.com/t/ruby-samples-not-working/63058>\
**Category:** Ruby\
**Created:** [June 11, 2006, 10:34am UTC](https://www.ruby-forum.com/t/ruby-samples-not-working/63058 "2006-06-11T10:34:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/48db29/32.png) [@ntk](https://www.ruby-forum.com/u/ntk)\
**Post date:** [June 11, 2006, 10:34am UTC](https://www.ruby-forum.com/t/ruby-samples-not-working/63058/1 "2006-06-11T10:34:45Z")

</div>

I recently installed ruby on windows XP with the latest ruby one-click  
windows installer. I selected all the components that came up in the  
installation list.

For some reason though, most of the samples do not work. Double clicking  
on them brings up the ruby terminal, then it just disappears a split  
second later. Does anyone know why this would be happening? hello.rb  
works, as do some others, but the rest don’t.

I’m fairly new to programming, so if i’m missing something obvious  
please let me know.

David K.

---

<div class="post-metadata">

**Author:** ![ntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/48db29/32.png) [@ntk](https://www.ruby-forum.com/u/ntk)\
**Post date:** [June 11, 2006, 11:12am UTC](https://www.ruby-forum.com/t/ruby-samples-not-working/63058/2 "2006-06-11T11:12:05Z")

</div>

On 6/11/06, David K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> please let me know.  
> Try opening a console window and executing them by explicit command,  
> like  
> “ruby hello.rb”, so that you can see any error messages without the  
> window  
> disappearing.

Curt
