Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th May 2012, 09:47 AM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
linuxfirefox
ruby interpreter doesn't work in interactive mode in FC 16

In installed ruby on FC 16 using yum. When I type the command "ruby" in a terminal in FC 16, the terminal scrolls down a line, but no prompt appears for the Ruby interpreter. This happens in both a XFCE terminal and in the console from CTRL-ALT-F2. I can type ruby expressions like
Code:
puts "hello world"
but they don't execute. With random typing, I do get syntax error messages that don't make any sense to me.

When I run a *.rb file with ruby, it works.

Is my knowledge of ruby out of date? (I have the 2nd edition of the pickaxe book, but not the 3rd). I thought the command ruby was supposed to start an interactive session of the ruby interpreter.

Code:
]$ ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #2  
Old 27th May 2012, 04:33 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,619
linuxfedorafirefox
Re: ruby interpreter doesn't work in interactive mode in FC 16

Quote:
Originally Posted by tashirosgt View Post
I thought the command ruby was supposed to start an interactive session of the ruby interpreter.
No, it never has as far as I know; it's just an interpreter, not a REPL. You need to run the irb command, which is part of the ruby-irb package in Fedora.
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
Reply With Quote
  #3  
Old 27th May 2012, 08:57 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
linuxfirefox
Re: ruby interpreter doesn't work in interactive mode in FC 16

Quote:
Originally Posted by RupertPupkin View Post
. You need to run the irb command, which is part of the ruby-irb package in Fedora.
Thank you for that information.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
Reply

Tags
interactive, interpreter, mode, ruby, ruby interpreter, work

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interactive C/C++ interpreter on Fedora? CD-RW Programming & Packaging 10 3rd November 2009 09:08 PM
Ruby syntax highlighting doesn't work in xemacs jadedcrypto Using Fedora 1 6th November 2007 09:22 PM
ruby in user mode munna_dude Using Fedora 1 5th February 2007 12:22 PM


Current GMT-time: 11:22 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat