title: How do I deploy a program to Solana - Solana/Rust
body: <p>I am attempting to run the HelloWorld solana program. I have cloned <a href="https://github.com/solana-labs/example-helloworld.git" rel="nofollow noreferrer">this</a> repo. I have started the project with</p>
  <pre><code>solana-test-validator
  </code></pre>
  <p>I ran <code>npm install</code> and then was able to build the rust project with</p>
  <pre><code>npm run build:program-rust
  </code></pre>
  <p>I can see the <code>.so</code> file in the directory <code>/dist/program/helloworld.so</code>. When I try to deploy the program to solana, I run</p>
  <pre><code>solana program deploy dist/program/helloworld.so
  </code></pre>
  <p>And here is the error I get</p>
  <pre><code>Error: Dynamic program error: No such file or directory (os error 2)
  </code></pre>
  <p>It can't find the file, but I have verified it is there. I have tried the full path and get the same error. I have tried to <code>clean</code> and reinstall the libs, but it hasn't helped.</p>
  <p>What else should I try?</p>