我无法编译 Near Core 和 Nearup。我可以使用 docker 或 nearup Ubuntu 等其他安装吗?
问问题
48 次
1 回答
0
简短回答:是的,您可以通过 nearup 使用预编译的二进制文件或docker。
查看Nearup文档,了解如何使用不同的设置运行近节点。
使用 Docker 运行:
nearup betanet
在没有 docker 的情况下运行:
nearup betanet --nodocker
。如果存在,这将为您的平台下载并使用预编译的二进制文件。从源代码运行:
从github 存储库下载源代码并 checkout 到beta
分支(这是在stakewars 中使用的,它不需要与master
分支兼容)。
make release
使用从文件夹编译源代码nearcore
。我看到你在这一点上失败了,可能是因为你缺少安装一些依赖项。在 Ubuntu 中安装它们:
sudo apt update
sudo apt install -y git binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev cmake gcc g++ python docker.io protobuf-compiler
要运行此二进制文件,请使用:
nearup betanet --nodocker --binary-path nearcore/target/release
于 2020-06-10T17:33:59.593 回答