Newbie prompt help

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:)

Well I’m not a Mac user but that means the shell is working? That’s the
only explanation. Try Ruby --help…

On Sun, Jan 20, 2013 at 8:22 PM, Ilya G. [email protected]
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.

which irb
/usr/bin/irb is too old. using /usr/local/bin/irb.
or install pry instead irb.

2013/1/21 Ilya G. [email protected]

On Linux this happens when I pass --simple-prompt to irb

You can use irb --prompt default instead of only irb

Hello,

On 21 Ιαν 2013, at 03:22 , Ilya G. [email protected] 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 :slight_smile:


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

Panagiotis (atmosx) Atmatzidis

email: [email protected]
URL: http://www.convalesco.org
GnuPG ID: 0xE736C6A0
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xE736C6A0