Forum: Ruby Newbie prompt help

Posted by Ilya Gershov (roken_rol1984)
on 2013-01-21 03:22
Hello all,

I am new to programing, and especially new to Ruby.
I just downloaded it on my MAC and am going through my Begining Ruby"
tutorial.

I've gotten the correct response for "ruby -v", but when I type "irb"
into the command prompt but the  result I get is ">>"  not
"irb(main):001:0>"

I don't know what I did wrong, and it's making me want to hit my head
against a wall.
Please help:)
Posted by Nelvin (Guest)
on 2013-01-21 03:46
(Received via mailing list)
Well I'm not a Mac user but that means the shell is working? That's the
only explanation. Try Ruby --help...
Posted by Josh Cheek (josh-cheek)
on 2013-01-21 04:05
(Received via mailing list)
On Sun, Jan 20, 2013 at 8:22 PM, Ilya Gershov <lists@ruby-forum.com> 
wrote:

> I don't know what I did wrong, and it's making me want to hit my head
> against a wall.
> Please help:)
>
>
Hi, I don't know offhand what is causing the difference (maybe some 
version
of Ruby has set the prompt differently in irb), BUT I do know it isn't a
problem. The ">>" is just a different way of saying "type your code 
here".
The makeup of the prompt isn't particularly important, the most 
important
thing is just that it shows up and you can evaluate code there.
Posted by windwiny (Guest)
on 2013-01-21 04:12
(Received via mailing list)
which irb
/usr/bin/irb is too old. using /usr/local/bin/irb.
or install pry instead irb.


2013/1/21 Ilya Gershov <lists@ruby-forum.com>
Posted by SITKI BAGDAT (Guest)
on 2013-01-21 04:17
(Received via mailing list)
You can use *irb --prompt default* instead of only irb
Posted by Santosh Kumar (Guest)
on 2013-01-21 08:03
(Received via mailing list)
On Linux this happens when I pass --simple-prompt to irb
Posted by Panagiotis Atmatzidis (Guest)
on 2013-01-21 19:37
(Received via mailing list)
Hello,

On 21 Ιαν 2013, at 03:22 , Ilya Gershov <lists@ruby-forum.com> wrote:

> I don't know what I did wrong, and it's making me want to hit my head
> against a wall.
> Please help:)

Best thing is to install ruby-1.9.3. The default ruby is deprecated 
under macosx.

Search for a guide online, there are more than I can count :-)

>
> --
> Posted via http://www.ruby-forum.com/.
>


Panagiotis (atmosx) Atmatzidis

email:  atma@convalesco.org
URL:  http://www.convalesco.org
GnuPG ID: 0xE736C6A0
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xE736C6A0
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.