Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is 'ruby' not recognized as an internal or external command?

Path in user variable is the default path from the installation:

C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin

Path in system variable is directed to:

C:\RailsInstaller\Ruby1.9.3\bin

When I open the Command Prompt with Ruby and Rails, the command prompt says "'ruby' is not recognized as an internal or external command" immediately without any input.

The command prompt worked before. After I re-installed it using various methods due to unsuccessful setup, it got like this.

How can I fix it?

like image 671
Han Qiu Avatar asked Jan 23 '26 17:01

Han Qiu


1 Answers

Please restart cmd before running ruby command.

like image 190
Ilyas karim Avatar answered Jan 25 '26 08:01

Ilyas karim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!