# No such file or directory (os error 2) runnning C examples

**URL:** <https://forum.dfinity.org/t/no-such-file-or-directory-os-error-2-runnning-c-examples/3478>\
**Category:** Developers\
**Created:** [May 12, 2021, 8:38pm UTC](https://forum.dfinity.org/t/no-such-file-or-directory-os-error-2-runnning-c-examples/3478 "2021-05-12T20:38:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joesurf433](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@joesurf433](https://forum.dfinity.org/u/joesurf433)\
**Post date:** [May 12, 2021, 8:38pm UTC](https://forum.dfinity.org/t/no-such-file-or-directory-os-error-2-runnning-c-examples/3478/1 "2021-05-12T20:38:13Z")

</div>

When I try and run the “reverse” C example, I get this. Any suggestions please?

Creating a wallet canister on the local network.  
The wallet canister on the “local” network for user “default” is “rwlgt-iiaaa-aaaaa-aaaaa-cai”  
Creating canister “reverse”…  
“reverse” canister created with canister id: “rrkah-fqaaa-aaaaa-aaaaq-cai”  
Creating UI canister on the local network.  
The UI canister on the “local” network is “ryjl3-tyaaa-aaaaa-aaaba-cai”  
Installing code for canister reverse, with canister\_id rrkah-fqaaa-aaaaa-aaaaq-cai  
No such file or directory (os error 2)

---

<div class="post-metadata">

**Author:** ![Ori](https://avatars.discourse-cdn.com/v4/letter/o/ecae2f/32.png) [@Ori](https://forum.dfinity.org/u/Ori)\
**Post date:** [May 12, 2021, 8:40pm UTC](https://forum.dfinity.org/t/no-such-file-or-directory-os-error-2-runnning-c-examples/3478/2 "2021-05-12T20:40:49Z")

</div>

You could try clearing the replica cache with `dfx start --clean`

Also, which OS are you running this on?

---

<div class="post-metadata">

**Author:** ![joesurf433](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@joesurf433](https://forum.dfinity.org/u/joesurf433)\
**Post date:** [May 12, 2021, 8:45pm UTC](https://forum.dfinity.org/t/no-such-file-or-directory-os-error-2-runnning-c-examples/3478/3 "2021-05-12T20:45:03Z")

</div>

I’m running on Ubuntu Linux  
restarted with “dfx start --clean” and got the following:

./start.sh  
Creating canister “reverse”…  
“reverse” canister was already created and has canister id: “rrkah-fqaaa-aaaaa-aaaaq-cai”  
Installing code for canister reverse, with canister\_id rrkah-fqaaa-aaaaa-aaaaq-cai  
No such file or directory (os error 2)

---

<div class="post-metadata">

**Author:** ![MMM](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@MMM](https://forum.dfinity.org/u/MMM)\
**Post date:** [May 27, 2021, 11:44am UTC](https://forum.dfinity.org/t/no-such-file-or-directory-os-error-2-runnning-c-examples/3478/4 "2021-05-27T11:44:59Z")

</div>

Hello!  
same issue on Fedora31.  
dfx start --clean does not help.  
No such file or directory… I copied the reverse.wasm in several different subfolders but no luck.  
Also the command that fails is the “install”.

\*\* BREAKING \*\*

issue solved. make sure you create the subfolder:  
.dfx/local/canisters/reverse  
and copy the reverse.wasm into it.

cheers.
