当前位置:网站首页>Cosmos Starport installation and startup

Cosmos Starport installation and startup

2022-06-13 07:57:00 Boiled soybeans in brine

install Starport

Three prerequisites :

  • Golang >=1.14
  • Protocol Buffer compiler(https://grpc.io/docs/protoc-installation/)
  • Node.js >=12.19.0

1. Script get binary ( Science and the Internet )

curl https://get.starport.network/starport! | bash

2.macOS with Homebrew

brew install tendermint/tap/starport

3.Build from source

git clone https://github.com/tendermint/starport && cd starport && make

This will build and install starport binary into $GOBIN.

Quick start

starport app github.com/foo/mychain

cd mychain

starport serve

Problems encountered

 Insert picture description here

Need to put packr2 Put command in global

 Insert picture description here

Go 1.14 There is a problem with version compilation need 1.15+ edition

 Insert picture description here

ubuntu Environmental installation Protocol Buffer compiler Problems arise

protoc-gen-gocosmos Unable to find

sudo apt install -y protobuf-compiler

Try to use go get Installation

go get -u github.com/golang/protobuf/{
    proto,protoc-gen-go}
原网站

版权声明
本文为[Boiled soybeans in brine]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270545188602.html