首页 技术 正文
技术 2022年11月16日
0 收藏 700 点赞 3,667 浏览 890 个字

今天我们来一步一步从搭建以太坊智能合约开发环境。

Ubuntu16.04

安装ubuntu16.04。下载链接

//先update一下(或者换国内源再update)
sudo apt-get update

g++ 安装

sudo apt-get install g++

libssl-dev 安装

sudo apt-get install libssl-dev 

git

之后的安装需要依赖Git

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

geth 安装

官方安装指引

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

Nodejs安装

ppa方式安装

solc安装

solidity是以太坊智能合约的开发语言。想要测试智能合约,开发DAPP的需要安装solc。官方文档获取更多信息

sudo npm install -g solc
sudo npm install -g solc-cli//检测是否安装成功:solcjs --help
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo add-apt-repository -y ppa:ethereum/ethereum-dev
sudo apt-get updatesudo apt-get install solc//检测是否安装成功:solc --help

Truffle安装

设置淘宝源

npm config set registry https://registry.npm.taobao.org
sudo npm install -g truffle

Ganache安装

官方文档

Ganache(或Ganache CLI)已经取代了 testrpc。

我们选择安装Ganache-cli ,而不是图像界面Ganache

sudo npm install -g ganache-cli
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,078
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,553
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,402
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,177
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,814
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,898