美文网首页
区块链 | 软件安装

区块链 | 软件安装

作者: Ricsy | 来源:发表于2018-12-29 23:30 被阅读0次

云服务器 Ubuntu 16.0.4

  • 更新软件源

apt update

  • 安装git、node、npm

sudo apt-get install git
sudo apt-get install nodejs-legacy
sudo apt-get install npm

版本检查:
git --version
node -v
npm-v

  • 安装Node.js v11.x

curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs

参阅:

  1. Installing Node.js via package manager
  2. Node.js Binary Distributions
  • 安装Go Ethereum

sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update

安装Go Ethereum的稳定版本:
sudo apt-get install ethereum

或安装开发版本:
sudo apt-get install ethereum-unstable

参阅:Installing Go Ethereum

  • 安装testrpc
    sudo npm install -g ethereumjs-testrpc
    testrpc

提示:-g参数是表示全局安装,则需要加sudo.

参阅:testrpc

  • 安装truffle
    sudo npm install -g truffle
  • 安装solc
    待处理:sudo npm -g install sol solc-cli --save-dev

提示:solc只是一个程序集,如果我们想要在终端中使用solc程序编译智能合约,则需要安装solc-cli(solc的命令行界面)。

本地Windows

  • 用于Windows的节点版本管理器(选一个)
  1. nodist

  2. nvm


更新中......


2018-12-30 更新


相关文章

网友评论

      本文标题:区块链 | 软件安装

      本文链接:https://www.haomeiwen.com/subject/kizulqtx.html