4_安装

安装说明

对支持的操作系统而言请按照下列说明进行环境配置。在不支持的操作系统上也可以安装全面的依赖和库。

  1. 安装Python3和Docker:

MacOS 使用Homebrew

  1. brew install python3 docker docker-compose
  2. brew cask install docker
  3. open -a Docker

Docker app出现在菜单后,请等待黄灯变绿灯(无需登录Docker)。

Ubuntu 18.04 使用apt:

  1. sudo apt update
  2. sudo apt install -y curl python3 python3-pip

然后按照官方说明设置Docker,并再按照官方说明设置Docker Compose。

  1. 安装node, yarn, truffle ``` touch ~/.bashrc curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.3/install.sh | bash . ~/.bashrc nvm install 10.16.3

curl -o- -L https://yarnpkg.com/install.sh | bash . ~/.bashrc

yarn global add truffle

  1. *全面依赖列表*
  2. 如果你使用的不是受支持系统,下面是一些重要的依赖。
  3. * [docker](https://github.com/docker/docker-ce/releases) 与 [docker-compose](https://github.com/docker/compose/releases)
  4. * [node](https://nodejs.org/en/)
  5. * [python3 and pip3](https://www.python.org/downloads/)
  6. * [truffle](https://truffleframework.com/docs/truffle/getting-started/installation)
  7. * [yarn](https://yarnpkg.com/en/)
  8. > 需要 `node -v` version 8, 10 or 12
  9. > 需要 `python3 --version` 3.6 or greater
  10. ## 下载Arbitrum
  11. 请按下列方法下载ArbitrumMonorepo

git clone -b sequencer2 https://github.com/offchainlabs/arbitrum.git cd arbitrum git submodule update —init —recursive yarn yarn build

  1. # 原生安装教程
  2. 对于大多数用户我们推荐使用简单的docker方式安装。不过如果你希望原生地安装Arbitrum,请遵循以下说明:
  3. *MacOS*
  4. `brew install autoconf automake boost cmake gmp go libtool rocksdb openssl`
  5. *Ubuntu 18.04*

sudo add-apt-repository -y ppa:longsleep/golang-backports sudo apt update sudo apt install -y autoconf automake cmake libboost-dev libboost-filesystem-dev libgmp-dev librocksdb-dev libssl-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev libtool golang-go clang-format cmake-format

git clone -b v6.11.4 https://github.com/facebook/rocksdb cd rocksdb make shared_lib make install

  1. ## 安装Arbitrum
  2. 安装完上述依赖后,你可以在本地安装Arbitrum了:

cd arbitrum yarn install:validator ```

3_公开测试网

5_Rollup基础