在安装Solana时获取此错误消息:错误:无法运行“ Prost-Build V0.10.1”的自定义构建命令

发布于 2025-01-25 06:38:18 字数 346 浏览 0 评论 0原文

运行此命令后,我遇到了这个错误:./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.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

混吃等死 2025-02-01 06:38:18

前列式板条箱汇编失败了,因为它找不到协议 - 缓冲器实现,并且板条箱构建。RS试图通过CMake(您尚未安装)对其进行编译。

我通过直接安装协议 - 撤离器来解决它,但是由于M1中的预编译二进制问题存在问题,因此您必须在本地进行编译。很简单:

git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf

brew install autoconf
brew install automake
brew install Libtool

autoreconf -i
./autogen.sh
./configure
make
make check
sudo make install

export PATH=/opt/usr/local/bin:$PATH

这有效!!!

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:

git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf

brew install autoconf
brew install automake
brew install Libtool

autoreconf -i
./autogen.sh
./configure
make
make check
sudo make install

export PATH=/opt/usr/local/bin:$PATH

This works!!!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文