创建seahorse初始化项目时出现错误,anchor初始化失败

huangapple go评论43阅读模式
英文:

Error trying to create seahorse init project, anchor init failed

问题

创建seahorse初始化项目时出现错误,anchor初始化失败

我正在尝试使用 Seahorse 在 Solana 中创建一个新项目,但我遇到了这个问题

seahorse init project

创建seahorse初始化项目时出现错误,anchor初始化失败

我尝试更新了所有内容,但问题仍然存在。我已经安装了 Anchor,并且我正在使用 Windows 10

英文:

创建seahorse初始化项目时出现错误,anchor初始化失败

I'm trying to create a new project in Solana with seahorse but I have this issue

seahorse init project

创建seahorse初始化项目时出现错误,anchor初始化失败

I tried updating everything but still having the same problem.
I already have anchor installed and I'm using Windows 10

答案1

得分: 0

你不能在Windows上运行Anchor。尝试安装WSL(Windows子系统用于Linux)。

在Visual Studio的左上角,点击远程连接,然后尝试再次运行该命令。Solana BPF编译器在Windows上不起作用,而Anchor在底层使用了它。

英文:

You can't run anchor on Windows. Try installing WSL (windows subsystem for linux).

Go to the left corner of visual studio, press on remote connection, and try running the command again. The Solana BPF compiler doesn't work on Windows and Anchor uses that under the hood.

huangapple
  • 本文由 发表于 2023年2月16日 10:41:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/75467317.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定