一,安装系统依赖包
cmake pkg-config libssl-dev git gcc build-essential git clang libclang-dev
pkg-config安装方式:
1、下载pkg-config:wget https://pkg-config.freedesktop.org/releases/pkg-config-0.29.tar.gz
2、解压:tar -zxvf pkg-config-0.29.tar.gz
3、cd 进入解压文件夹
4、运行配置文件进行系统配置 : ./configure --with-internal-glib
5、编译 pkgconfig : make
6、安装包自检测 : make check
7、安装 :make install
至此, pkg-config 安装完成。
安装gcc-c++库
yum install gcc-c++
二、安装rust环境,参考https://forge.rust-lang.org/infra/other-installation-methods.html 及https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup
wget https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
chmod 755 rustup-init
./rustup-init
source ~/.cargo/env
rustup update nightly
rustup update stable
rustup target add wasm32-unknown-unknown --toolchain nightly
cd substrate-node-template/
cargo build --release
三、安装前端
git clone -b v2.0.0-rc6 --depth 1 https://github.com/substrate-developer-hub/substrate-front-end-template
cd substrate-front-end-template
yarn install
yarn start