ubuntu工具安装系列-Ethereum

2018-10-19  本文已影响0人  Lnhj

ubuntu工具安装系列-Ethereum

Readme
声明:笔记中的部分网址可能需要翻墙才能访问,并且可能由于环境的不同会有错误
安装环境:本机环境为win10x64,虚拟机为ubuntu18.04.1

  1. 安装vmare tools
    • 右键安装,然后复制到桌面
    • 用root权限安装vmare-install.pl
  2. 更新国内源
  3. 安装git

    sudo apt-get install git
  4. 配置以太坊安装环境
    1. 用git从github上获取ethereum二进制源码

      git clone https://github.com/ethereum/go-ethereum.git
    2. 安装配置go语言
    3. 安装truffle与testrpc
      1. 安装npm
        • 下载源码文件链接
        • 由于编译时需要用到python,所以如果没有python的话,就需要安装
          sudo apt-get install python
        • 解压下载好的nodejs,解压为node
        • cd node
        • ./configure
        • make
        • make install用root权限
      2. 安装truffle
        • 设置淘宝源

          npm config set registry https://registry.npm.taobao.org
        • npm install -g truffle
        • truffle version查看版本
      3. testrpc 生成测试账号、监听测试
        • 安装
          • 老版npm install -g ethereumjs-testrpc
          • 升级版npm install -g ganache-cli
    4. 安装google浏览器
      • 添加依赖sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/
      • 导入公钥wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
      • 更新依赖sudo apt-get update
      • 安装软件sudo apt-get install google-chrome-stable
      • 启动Google浏览器/usr/bin/google-chrome-stable
    5. 安装remix-ide(源码安装)
      • git clone https://github.com/ethereum/remix-ide.git
      • cd remix-ide
      • npm install
      • npm run setupremix
      • npm start
上一篇下一篇

猜你喜欢

热点阅读