Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic/counter run anchor build && anchor deploy doesn't work #130

Open
shippomx opened this issue Oct 11, 2024 · 1 comment
Open

basic/counter run anchor build && anchor deploy doesn't work #130

shippomx opened this issue Oct 11, 2024 · 1 comment

Comments

@shippomx
Copy link

shippomx commented Oct 11, 2024

$ anchor build
    Finished release [optimized] target(s) in 0.09s
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s
     Running unittests src/lib.rs (/root/.cargo/target/debug/deps/counter_anchor-5510bc148d8d6b91)

$ anchor deploy
Deploying cluster: http://127.0.0.1:8899
Upgrade authority: /root/.config/solana/id.json
Deploying program "counter_anchor"...
Program path: /root/program-examples/basics/counter/anchor/target/deploy/counter_anchor.so...
Error: Unable to open program file: No such file or directory (os error 2)
There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }.

$ stat /root/program-examples/basics/counter/anchor/target/deploy/counter_anchor.so   
stat: cannot statx '/root/program-examples/basics/counter/anchor/target/deploy/counter_anchor.so': No such file or directory

it seems like, when i run anchor build, /root/program-examples/basics/counter/anchor/target/deploy/counter_anchor.so was not generated.

program-example commi: 401366c
anchor: 0.30.1
solana-cli 1.18.25 (src:92ddaa20; feat:3241752014, client:Agave)

@pmprete
Copy link

pmprete commented Nov 4, 2024

Same happens to me for project created with "anchor init counterapp" using a Mac M1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants