I am following the walk-through video for water, and it's very straight forward which is why this is frustrating me so much. I create the file integer.c and input the code as instructed, however it says in the work space "no such file or directory."

I have checked for syntax errors very carefully and I am pretty sure there are none. I have also made sure that the work space is in my pset1 folder. I have put a screenshot of what I am looking at in.


What have I done wrong? Thanks!

1 Answer 1


The command ./water will attempt to run the executable file water. This is not the same as the source code file water.c. If you look at the file list on the left of the IDE, the file water doesn't exist, so you get that error.

You are able to successfully run the command ./hello because that executable file does exist. If you look at the file list on the left, you would see both the source code file hello.c and the executable file hello.

You can also list all the files in the current directory with the command ls. If you want a detailed listing with more data, run ls -al.

To solve your problem, you need to make and compile the executable program. The command is make water. If it is successful, it will generate the executable file water. If not, it will show the errors that need to be fixed in the source code.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintnenace. ;-)

  • Thank you! problem solved Commented Jan 22, 2017 at 19:01
  • does he have anything in the water file? i am watching the walkthrough videa and can even get anything to output when i do ./integer. instead i get "No such file or directory" Commented Jan 23, 2017 at 18:46
  • there is nothing in the water file. Im still struggling with that. In the workspace, you need to run the command "make integer", it then creates an executable program. Then, assuming there are no errors, ./integer will work Commented Jan 23, 2017 at 19:55
  • Thanks!! "make integer" helps!!
    – Mari Goto
    Commented Aug 30, 2017 at 13:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .