系统版本:Ubuntu16.04.4
① 安装nodejs(安装后版本nodejs版本大于6)、babel-node环境
sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo apt install nodejs-legacy
sudo apt install npm
sudo npm config set registry https://registry.npm.taobao.org
sudo npm config list
sudo npm install n -g
sudo n stable
sudo node -v
sudo npm install -g babel-cli babel-preset-es2017 echo '{ "presets": ["es2017"] }' > ~/.babelrc
wget https://github.com/ethereum/solidity/releases/download/v0.4.13/solc-static-linux
sudo cp solc-static-linux /usr/bin/solc
sudo chmod +x /usr/bin/solc
③ 安装控制台
sudo npm install -g ethereum-console
git clone https://github.com/bcosorg/bcos.git
官网下载cmake-3.6.3.tar.gz(https://cmake.org/download/)
1.解压文件tar -xvf cmake-3.6.3.tar.gz,并修改文件权限chmod -R 777 cmake-3.6.3
2.检测gcc和g++是否安装,如果没有则需安装gcc-g++:sudo apt-get install build-essential(或者直接执行这两条命令sudo apt-get install gcc,sudo apt-get install g++)
3.进入cmake-3.6.3 进入命令 cd cmake-3.6.3
4.执行sudo ./bootstrap
5.执行sudo make
6.执行 sudo make install
7.执行 cmake –version,返回cmake版本信息,则说明安装成功
② 安装依赖的开发库
sudo yum install -y openssl openssl-devel chmod +x bcos源码路径/scripts/install_deps.sh bcos源码路径/scripts/install_deps.sh