PDA

View Full Version : Suddenly, nothing ruby works


clem_c_rock
December 2nd, 2006, 05:35 PM
Hello,

I had successfully installed ruby and built some applications which were working beautifully and suddenly when I went back to start up some of the applications, I went to the pages and recieved the error of "application failed (ruby).

I then restarted my computer and tried to start Webrick server and now I get "recognized as an internal or external command" on all ruby or rails command line calls

IE: C:\>rails "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ruby_app
_3"
yeilds this:
'rails' is not recognized as an internal or external command,
operable program or batch file.

C:\>ruby "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\myfirstap
p\script\server"

Yeilds this:
'ruby' is not recognized as an internal or external command,
operable program or batch file.

I then went and reinstalled ruby and the same thing happens.

HEEEEEEEELLLLLLP!!!!!

rob
December 2nd, 2006, 08:04 PM
Type "set path" in the command prompt window and paste what it returns.

clem_c_rock
December 2nd, 2006, 10:32 PM
Here's the output of the set path:

C:\>set path
Path=C:\WINDOWS\system32;"C:\PROGRAM FILES\MOZILLA.ORG\MOZILLA";"C:\Program File
s\mozilla.org\Mozilla\";C:\WINDOWS;C:\WINDOWS\COMMAND;C:\WINDOWS\system32 \WBEM;C
:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\backburner 2\;C:\
php\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WS F;.WSH

rob
December 2nd, 2006, 10:45 PM
Ruby is missing from your path.

The easiest thing to do would be to reinstall the Ruby one-click installer. Make sure you uninstall it first, then install it again.

clem_c_rock
December 3rd, 2006, 09:50 AM
I did uninstall/reinstall Ruby already once and there was no change.

Very strange - it was working perfectly, I made no changes whatsoever on this machine.

Can I set the path manually?

clem_c_rock
December 3rd, 2006, 12:11 PM
Yup - that's what it was - Somehow - my path variable got waxed.

Really strange - maybe it was a software update clash -dunno.

It's fixed now after I manually appended the ruby c:/ruby/bin to the Path variable.

Thanks again!

Edit/Delete Message