The system cannot find the path specified when starting Ruby and Rails command prompt

前端 未结 3 1613
余生分开走
余生分开走 2021-01-21 05:44

I just started learning rails a week ago and everything worked until today. Now when I start the Ruby command prompt, it says:

The system cannot find the path s         


        
相关标签:
3条回答
  • 2021-01-21 05:53

    None of the answers above helped me. My issue was whenever i typed rail -v it gave me the same error. I had to install rails, i used the following command:

    gem install rails --no-document

    you can check out the following installation steps to get around the error:

    http://docs.railsbridge.org/installfest/windows

    0 讨论(0)
  • 2021-01-21 05:55

    I had the same problem in Windows 7 and solved it by adding Git/bin directory to the system path variable (found the answer here). Hope this helps someone!

    0 讨论(0)
  • 2021-01-21 06:08

    You've probably used "Ansicon" - a program to get the colors in windows prompt right. If you installed it permanently with -i parameter and consequently moved/deleted its directory, it would lead to this error. (I've just experienced it)

    The solution is to renew the location of the ansicon data files or to remove the following registry entry:

    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
    

    You can find more on this issue at http://carol-nichols.com/2011/03/17/the-system-cannot-find-the-path-specified/

    Good luck!

    0 讨论(0)
提交回复
热议问题