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

徘徊边缘 提交于 2019-12-31 01:45:14

问题


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 specified.

# Under Rails Environment Configuration.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.

---

The paths for ruby and rails show up correctly.

I'm using Windows Vista 32-bit. Any help would be greatly appreciated, thanks!


回答1:


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!




回答2:


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!




回答3:


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



来源:https://stackoverflow.com/questions/6637922/the-system-cannot-find-the-path-specified-when-starting-ruby-and-rails-command-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!