You are not logged in.

#1 2007-07-06 13:05:36

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

[solved] Ruby gives no output

Sorry if someone has already posted anything about it, I used the search and didn't find anything about it.

I type 'ruby' at bash and then nothing happens. The only output I have is when I press Ctrl+C (which prints that ruby was interrupted) or Ctrl+D (that prints the last statement, like 'print 1' and it prints '1').

Apps that depend on ruby (like gvim) work nicely.

I've already compiled it with makepkg instead of using 'pacman -S', but it didn't work.

Last edited by andre.ramaciotti (2007-07-06 13:37:34)


(lambda ())

Offline

#2 2007-07-06 13:18:42

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [solved] Ruby gives no output

I'm confused - what should it do?

Offline

#3 2007-07-06 13:34:45

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [solved] Ruby gives no output

Err, you should use ruby command to run scripts (ruby blahblah.rb). If you want interactive ruby, run "irb".

Offline

#4 2007-07-06 13:35:13

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: [solved] Ruby gives no output

D'oh! I'm so stupid. The ruby interpreter is called by 'irb', not 'ruby'.

Thanks anyway smile


(lambda ())

Offline

#5 2007-07-06 13:36:48

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: [solved] Ruby gives no output

I've just realized it, lucke. Thanks.

PS: it could appear anywhere in 'man ruby' that you should use 'irb'...


(lambda ())

Offline

Board footer

Powered by FluxBB