The system cannot find the path specified when running the Ruby and Rails command line

I just started to study rails a week ago, and everything worked until today. Now when I run the Ruby command line, 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. --- 

Paths for rubies and rails are displayed correctly.

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

+3
source share
3 answers

You probably used Ansicon, a program for displaying colors correctly in a Windows window. If you constantly installed it with the -i option and therefore moved / deleted its directory, this would lead to this error. (I just experienced this)

The solution is to update the location of the ansicon data files or delete the following registry entry:

 HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun 

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

Good luck

+23
source

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

+2
source

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

gem install rails --no-document

You can check the following installation steps to get around this error:

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

0
source

All Articles