Bash: line 1: ./water: No such file or directory


#1

Hi!!

I try to test the codes in the textbook in Cloud9. However, it gave me the following error message:

bash: line 1: ./water: No such file or directory

Process exited with code: 127

Can anyone please give me some suggestions on how to fix it?? Thanks!!


#2

You should switch the runner to C. It looks like you’re currently using the Shell script runner. Also that file looks like it’s called 123, not water. Make sure you’ve saved it then hit run with that file tab selected.


#3

Thanks for suggestion! However, I run into another problem now.


#4

Your file is still named 123. You need to name it with a valid extension so it knows what to do with it.