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

Error: 系统找不到指定的文件。 (os error 2) #3123

Open
cxp-13 opened this issue Jul 27, 2024 · 4 comments
Open

Error: 系统找不到指定的文件。 (os error 2) #3123

cxp-13 opened this issue Jul 27, 2024 · 4 comments
Labels
avm installation error Issues related to installation errors

Comments

@cxp-13
Copy link

cxp-13 commented Jul 27, 2024

Error: Anchor version not set. Please run `avm use latest`.

C:\Users\16952>avm
Anchor version manager

Usage: avm <COMMAND>

Commands:
  use        Use a specific version of Anchor
  install    Install a version of Anchor
  uninstall  Uninstall a version of Anchor
  list       List available versions of Anchor
  update     Update to the latest Anchor version
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

C:\Users\16952>
C:\Users\16952>avm update
    Updating git repository `https://github.com/coral-xyz/anchor`
warning: skipping duplicate package `docs` found at `C:\Users\16952\.cargo\git\checkouts\anchor-50c4b9c8b5e0501f\e6d7daf\tests\idl\programs\docs`
warning: skipping duplicate package `external` found at `C:\Users\16952\.cargo\git\checkouts\anchor-50c4b9c8b5e0501f\e6d7daf\tests\idl\programs\external`
warning: skipping duplicate package `relations-derivation` found at `C:\Users\16952\.cargo\git\checkouts\anchor-50c4b9c8b5e0501f\e6d7daf\tests\relations-derivation\programs\relations-derivation`
warning: skipping duplicate package `swap` found at `C:\Users\16952\.cargo\git\checkouts\anchor-50c4b9c8b5e0501f\e6d7daf\tests\swap\programs\swap`
warning: skipping duplicate package `shared` found at `C:\Users\16952\.cargo\git\checkouts\anchor-50c4b9c8b5e0501f\e6d7daf\tests\typescript\programs\shared`
warning: skipping duplicate package `shared` found at `C:\Users\16952\.cargo\git\checkouts\anchor-50c4b9c8b5e0501f\e6d7daf\tests\zero-copy\programs\shared`
     Ignored package `anchor-cli v0.30.1 (https://github.com/coral-xyz/anchor?tag=v0.30.1#e6d7dafe)` is already installed, use --force to override
Error: 系统找不到指定的文件。 (os error 2)```
@acheroncrypto acheroncrypto added avm installation error Issues related to installation errors labels Jul 27, 2024
@acheroncrypto
Copy link
Collaborator

(os error 2) is no such file or directory, but it says

     Ignored package `anchor-cli v0.30.1 (https://github.com/coral-xyz/anchor?tag=v0.30.1#e6d7dafe)` is already installed, use --force to override

on the last line, so it should be installed?

@AyaneBTC
Copy link

also encounter the problem

@acheroncrypto
Copy link
Collaborator

You'd be having much better time using WSL to develop on Solana as tooling support for Windows isn't great (see #2453 (comment)).

@Lu-Derik
Copy link

I got the same error on Ubuntu while executing "anchor init xxx". How to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
avm installation error Issues related to installation errors
Projects
None yet
Development

No branches or pull requests

4 participants