在安装Solana时获取此错误消息:错误:无法运行“ Prost-Build V0.10.1”的自定义构建命令
运行此命令后,我遇到了这个错误:./scripts/cargo-install-all.sh。
error: failed to run custom build command for `prost-build v0.10.1`
我正在M1 Mac上安装Solana 任何人,请帮助我。
I'm got this error after running this command: ./scripts/cargo-install-all.sh .
error: failed to run custom build command for `prost-build v0.10.1`
I'm installing solana on m1 mac
Anyone please help me with this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
前列式板条箱汇编失败了,因为它找不到协议 - 缓冲器实现,并且板条箱构建。RS试图通过CMake(您尚未安装)对其进行编译。
我通过直接安装协议 - 撤离器来解决它,但是由于M1中的预编译二进制问题存在问题,因此您必须在本地进行编译。很简单:
这有效!!!
The prost-build crate compilation is failing because it can't find protocol-buffer implementation, and the crate build.rs tries to compile it via cmake (which you don't have installed).
I solved it by installing protocol-buffers directly, but since there are problems with the pre-compiled binary in M1 you have to compile it locally. It's simple:
This works!!!