SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    NC
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Suddenly, nothing ruby works

    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!!!!!

  2. #2
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is your path correct?

    Type path in a console and check for the ruby bin directory.

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    NC
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    here's my set path output: (suddenly ruby's not there):

    C:\>set path
    Path=C:\WINDOWS\system32;"C:\PROGRAM FILES\MOZILLA.ORG\MOZILLA";"C:\Program File
    s\mozilla.org\Mozilla\";C:\WINDOWS;C:\WINDOWS\COMM AND;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


    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?

  4. #4
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you can set it by right clicking on my computer and then preferences. Click a button called environment variables and add the ruby-bin dir to the path.

  5. #5
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    NC
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •