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



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!!


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.


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


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