简体   繁体   中英

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

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!

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!

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM