Computer Science Canada help ruby ahhh ugh help |
Author: | dirwin [ Thu Mar 24, 2005 11:10 am ] |
Post subject: | 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 |
Author: | Tony [ Thu Mar 24, 2005 11:33 am ] | ||||
Post subject: | |||||
the proper syntax for using Ruby is as follows (from the shell)
to execute the script you wrote and saved as a file. to play with Ruby interactivly
That will bring up the interactive shell mentioned |
Author: | dirwin [ Thu Mar 24, 2005 11:42 am ] |
Post subject: | |
woohoo it works now ![]() thanks |
Author: | dirwin [ Thu Mar 24, 2005 2:02 pm ] |
Post subject: | |
i just found out that ruby is not really made to work on windows xp but more for unix. ![]() im going to get unix or linux when i find a good free one to try but thanks for the help with that problem ![]() |
Author: | Tony [ Thu Mar 24, 2005 2:39 pm ] |
Post subject: | |
oddly enough Ruby is easier to install in Windows (due to their packaged release). Though on the other hand, OSX comes with Ruby preinstalled ![]() |
Author: | dirwin [ Thu Mar 24, 2005 3:11 pm ] |
Post subject: | |
i read that the on that comes with osx has a tendency to crash alot ![]() |
Author: | wtd [ Thu Mar 24, 2005 3:50 pm ] |
Post subject: | |
dirwin wrote: 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. |
Author: | wtd [ Thu Mar 24, 2005 3:51 pm ] |
Post subject: | |
dirwin wrote: i just found out that ruby is not really made to work on windows xp but more for unix.
![]() 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. ![]() |
Author: | Hikaru79 [ Sat Apr 02, 2005 7:05 pm ] |
Post subject: | |
tony wrote: 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. |