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:)
on 2013-01-21 03:22
on 2013-01-21 03:46
Well I'm not a Mac user but that means the shell is working? That's the only explanation. Try Ruby --help...
on 2013-01-21 04:05
On Sun, Jan 20, 2013 at 8:22 PM, Ilya Gershov <firstname.lastname@example.org> 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.
on 2013-01-21 04:12
which irb /usr/bin/irb is too old. using /usr/local/bin/irb. or install pry instead irb. 2013/1/21 Ilya Gershov <email@example.com>
on 2013-01-21 04:17
You can use *irb --prompt default* instead of only irb
on 2013-01-21 08:03
On Linux this happens when I pass --simple-prompt to irb
on 2013-01-21 19:37
Hello, On 21 Ιαν 2013, at 03:22 , Ilya Gershov <firstname.lastname@example.org> 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: email@example.com URL: http://www.convalesco.org GnuPG ID: 0xE736C6A0 gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xE736C6A0