基于Ubuntu系统搭建以太坊go-ethereum源码的开发环境
来源:互联网 发布:centos tmp 自动清理 编辑:程序博客网 时间:2024/06/04 18:26
第一、先安装geth的CLI环境sudo apt-get install geth,这个很重要
第二、下载源代码
git clone https://github.com/ethereum/go-ethereum第三、依赖环境
注:(重要)先通过此链接配置GO语言的开发环境:https://github.com/ethereum/go-ethereum/wiki/Installing-Go#ubuntu-1404
Ethereum Go是使用Go语言开发的,需要Go和C的编译器 sudo apt-get install -y build-essential golang
cd go-ethereummake geth
最后输入:
build/bin/geth --datadir "~/ethdev" --dev
启动客户端
然后另起终端输入
geth --dev console 2>> file_to_log_output
输出
Welcome to the Geth JavaScript console!
instance: Geth/v1.5.7-stable-da2a22c3/linux/go1.7.3
modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0
>
即为成功
然后就可以进行以太坊命令操作
也可已使用build/bin/geth --identity "secbro etherum" --rpc --rpccorsdomain "*" --datadir "/home/zero/eth/chain" --port "30303" --rpcapi "db,eth,net,web3" -- networkid 95518 console --dev创建私有连,创世块
最后配置Go语言环境可以参考我的博客
- 基于Ubuntu系统搭建以太坊go-ethereum源码的开发环境
- 以太坊go-ethereum项目源码本地环境搭建
- 区块链开发(一)搭建基于以太坊go-ethereum的私有链环境
- 区块链开发(一)搭建基于以太坊go-ethereum的私有链环境
- 区块链零基础开发----1.搭建基于以太坊go-ethereum的私有链环境
- 区块链开发(一)搭建基于以太坊go-ethereum的私有链环境
- 以太坊go-ethereum客户端docker安装(二)开发(dev)环境搭建
- 以太坊go-ethereum客户端docker安装(二)开发(dev)环境搭建
- 【区块链】搭建基于ethereum以太坊环境的私有链
- 【以太坊】Ethereum Popular Client: go-ethereum
- 使用 Go-Ethereum 1.7.2搭建以太坊私有链
- 使用 Go-Ethereum 1.7.2搭建以太坊私有链
- 搭建 go-ethereum 本地开发环境
- Ubuntu:搭建以太坊开发环境
- 搭建GO开发环境(Win10 go-ethereum)
- 【以太坊】ubuntu安装以太坊ethereum的测试网络ropsten-net以及雷电网络raiden-network环境
- 区块链技术 之 以太坊(ethereum)开发环境安装
- 以太坊go-ethereum常见问题汇总
- (18)Java学习笔记——多线程01
- 数据算法之快速排序(quickSort)的Java实现
- DriveInfo.GetDrives使用错误备忘
- Win10 Python 2.7.7 安装Scrapy
- C# 类型转换(知识要点归纳总结)
- 基于Ubuntu系统搭建以太坊go-ethereum源码的开发环境
- Android studio————Gradle基础语法
- hibernate与mybatis的区别
- CListBox中怎么样默认选中第一行的数据?
- angular 中的 DOM 操作
- CSS3盒相关样式读后感
- opencv学习笔记之Mat
- Android 从源码的角度带你完全解析AsyncTask
- 在java中,〈?extends A 〉与〈T extends A〉有什么区别?