LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2018, 03:41 AM   #1
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Rep: Reputation: Disabled
How to evoke Ruby?


My OS is Linux Mint 17.3 Rosa Cinnamon. The computer tells me that I already have the Ruby interpreter version 1.9.1 or perhaps version 1.9.3 installed.

But I cannot see how to start it running. It is not to be found anywhere in the desktop menu. When I type in 'ruby' in the console and press return, I just get a new blank line. When I then type in for example '2 + 2' and press return, I get another new blank line.

Thanks.
 
Old 04-21-2018, 03:49 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,954

Rep: Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329
and what will happen if you enter:
2+2=
 
Old 04-21-2018, 03:57 AM   #3
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
In the console I typed in 'ruby' return, then typed in '2+2=' return and it responded:

"-:1: syntax error, unexpected '=', expecting $end"

So is that Ruby?

Thanks.

Edit/update: a web-search indicates that it is indeed Ruby.

Is is customary to use an IDE for Ruby? Which is the most popular one for Ruby when using Linux? Thanks again.

Last edited by grumpyskeptic; 04-21-2018 at 04:11 AM.
 
Old 04-21-2018, 04:22 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,954

Rep: Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329
yes, that is ruby.
you might want to start here: https://www.tutorialspoint.com/ruby/index.htm, or here: https://www.ruby-lang.org/en/documentation/quickstart/
 
Old 04-21-2018, 11:02 AM   #5
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
Thanks.

It seems to be better to type 'irb' in the console rather than 'ruby'.

This https://www.ruby-lang.org/en/documentation/quickstart/ gives a 20 minute introduction to Ruby.
 
Old 04-21-2018, 12:03 PM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,954

Rep: Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329
Glad to help you.
If you really want to say thanks just click on yes.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any issues installing Ruby Gems and Ruby on Rails in Slackware? Lufbery Slackware 8 02-09-2011 07:22 PM
LXer: Microsoft's Patent Threats Evoke Retorts LXer Syndicated Linux News 0 05-17-2007 05:31 PM
evoke a signal basak Linux - Software 5 08-11-2006 01:47 AM
Evoke program from html in Konqueror Darkfalz Linux - Software 2 11-17-2005 08:52 AM
Clicking an URL to evoke a browser satimis Linux - General 2 03-12-2005 05:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration