【问题标题】:avm package is not installed when install Anchor on linux在 linux 上安装 Anchor 时未安装 avm 包
【发布时间】:2022-10-17 17:53:55
【问题描述】:

我将在 Linux 中使用 Anchor 框架构建 solana 智能合约。 所以我必须安装 Anchor 框架。 但错误打断了我的路。 当我写 avm install latest 终端命令时。 错误如下。


  command 'gvm' from snap gvm (1.1.0)
  command 'vm' from deb mgetty-voice (1.2.1-1)
  command 'kvm' from deb qemu-kvm (1:4.2-3ubuntu6.23)
  command 'vam' from deb vim-addon-manager (0.5.10)
  command 'lvm' from deb lvm2 (2.03.07-1ubuntu1)
  command 'pvm' from deb pvm (3.4.6-2build2)
  command 'acm' from deb acm (5.0-29.2ubuntu1)

See 'snap info <snapname>' for additional versions.```


please teach me how to fix this error.

【问题讨论】:

    标签: linux rust anchor


    【解决方案1】:

    Anchor 可能已正确安装,但无法全局访问。要检查是否安装了 avm,请执行命令:cd ~/.cargo/bin 后跟 ls。如果你能看到这样的东西:directory list

    然后正确安装了avm。剩下的唯一步骤是访问 avm 全局。

    为此,请执行命令 nano ~/.bashrc 并在编辑文件的底部添加行 export PATH="$PATH:&lt;absolute-path-to-bin-directory-of-cargo&gt;"

    【讨论】:

      猜你喜欢
      • 2022-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-05
      • 2020-09-19
      • 2021-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多