c:\Ruby187\bin\ruby.exe: No such file or directory

I have been running my Ruby program using the Git Bash console for a
while now.

Lately, when I wanted to run a simple ruby program, i go the following
on the console:

c:\Ruby187\bin\ruby.exe: No such file or directory

Why is that? And, how can I solve this issue?

Thanks.

SW Engineer wrote in post #1016522:

I have been running my Ruby program using the Git Bash console for a
while now.

Lately, when I wanted to run a simple ruby program, i go the following
on the console:

c:\Ruby187\bin\ruby.exe: No such file or directory

Why is that? And, how can I solve this issue?

Thanks.

It seems that I had to explicitly save my ruby program with the
extension “.rb” added at the end of the file name for this problem to
disappear.

Thanks.