
-----------------------------------
dirwin
Thu Mar 24, 2005 11:10 am

help ruby ahhh ugh help
-----------------------------------
hi 
i just got ruby yesterday and im having a problem with it well actualy having a problem with the documentation that comes with it it said

*The easiest way to run Ruby interactively is simply to type ``ruby'' at the shell prompt* 

im on xp pro its probly a microsquish problem 
but i opened up command prompt and got nothing when i typed in ruby i think i froze it :) 
and then i found out that ruby comes with an interactive shell program thingy so i typed ruby in on that thing and got an error *NameERROR*
could anyone inlighten me to what the shell prompt is that there talking about or is this somthing that i dont have because im using microcrap?

thanks

-----------------------------------
Tony
Thu Mar 24, 2005 11:33 am


-----------------------------------
the proper syntax for using Ruby is as follows (from the shell)

ruby script_name.rb

to execute the script you wrote and saved as a file.

to play with Ruby interactivly

irb

That will bring up the interactive shell mentioned

-----------------------------------
dirwin
Thu Mar 24, 2005 11:42 am


-----------------------------------
woohoo it works now :)
thanks

-----------------------------------
dirwin
Thu Mar 24, 2005 2:02 pm


-----------------------------------
i just found out that ruby is not really made to work on windows xp but more for unix. :) just another reason to leave microsquish
im going to get unix or linux when i find a good free one to try
but thanks for the help with that problem :)

-----------------------------------
Tony
Thu Mar 24, 2005 2:39 pm


-----------------------------------
oddly enough Ruby is easier to install in Windows (due to their packaged release).

Though on the other hand, OSX comes with Ruby preinstalled :wink: (unfortunatly it's only 1.6.x, but that's besides the point)

-----------------------------------
dirwin
Thu Mar 24, 2005 3:11 pm


-----------------------------------
i read that the on that comes with osx has a tendency to crash alot :)

-----------------------------------
wtd
Thu Mar 24, 2005 3:50 pm


-----------------------------------
i read that the on that comes with osx has a tendency to crash alot :)

I never experienced that.  However, 1.8.x is worth having, and the best way to get it is to build from source.

-----------------------------------
wtd
Thu Mar 24, 2005 3:51 pm


-----------------------------------
i just found out that ruby is not really made to work on windows xp but more for unix. :) just another reason to leave microsquish
im going to get unix or linux when i find a good free one to try
but thanks for the help with that problem :)

Like Tony said, it'll work fine with Windows, as long as you get all of the PATH quirkiness worked out (and that's a shortcoming of the OS, not Ruby).

Good luck with your Ruby adventures.  :)

-----------------------------------
Hikaru79
Sat Apr 02, 2005 7:05 pm


-----------------------------------
oddly enough Ruby is easier to install in Windows (due to their packaged release).


Well, depends on your distribution. Debian and Gentoo have it easy -- 'emerge ruby' and 'apt-get install ruby' and that's it.
