Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Ruby Error (http://www.topmudsites.com/forums/showthread.php?t=452)

NotL337 07-21-2006 06:23 PM

Hey guys.

I'm still pluging away at my mud, although I did drop learning how to code for a bit when I was unable to find someone to teach me how.

I'm back at it though, and I've decided to work with Ruby.

I redownloaded Ruby, and got it set up. I used to have it working fine on my computer, but someone deleted it for some reason so I had to reinstall it.

I know that I had it working before, but now it doesn't want to.

I make programs, and then I go into the folder where they are (using Command Prompt) and type in: ruby [filename].rb like the tutorial says to, and like I remember I used to.

Now, however, it says: 'ruby' is not recognized as an internal or external command, operable program, or batch file.

I seem to remember that last time I tried Ruby, I had to go in and add something to the 'system' line of text in the Settings>Control Panel area, but I can't find any instructions on that, or remember where I got them from the first time.

My computer system is Windows XP Pro.

Yuki 07-21-2006 11:04 PM

Not sure what version of windows you're on, but...

Right click "My Computer" and select properties.

Select "Advanced" tab.

Select "Environment Variables" button.

Add the path of the ruby \bin folder (don't quote me on this, I don't know Ruby but I do know Java/others and it's probably the same)

Accomplish this by finding the "path" variable in the "system variables" section, and add in there something like ";c:\program files\<ruby install folder>\bin" or some such thing.

You need the semicolon as a separator in there.

Make sure to close your command window and reopen it. You can verify it was added by typing "path" at the command prompt, see if it's there.

If you add the right path, it'll find it.

NotL337 07-21-2006 11:14 PM



All times are GMT -4. The time now is 10:27 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022