1.
sudo apt-get install nodejs
2.
sudo apt-get install npm
3.
安装成功后,可以查看下当前的版本,确认正常安装:
admin07@admin-MS:~$ node -v
v8.10.0
4.
sudo npm install -g ethereumjs-testrpc
5.
sudo npm install web3
6.
sudo npm install -g solc
sudo npm install -g solc-cli
$ solcjs --help
Usage: /usr/local/bin/solcjs [options] [input_file...]
选项:
--version 显示版本号 [布尔]
--optimize Enable bytecode optimizer. [布尔]
--bin Binary of the contracts in hex. [布尔]
--abi ABI of the contracts. [布尔]
--standard-json Turn on Standard JSON Input / Output mode. [布尔]
--output-dir, -o Output directory for the contracts. [字符串]
--help 显示帮助信息 [布尔]
7.
sudo npm install -g truffle
admin07@admin-MS:~/liang/job/gopath/src/github.com/ethereum/go-ethereum$ truffle version
Truffle v4.1.11 (core: 4.1.11)
Solidity v0.4.24 (solc-js)