本来期望使用docker,但是下载eos总是不成功,只能自己编译,折腾了ubuntu18,ubuntu16.10,ubuntu16.04,然后总算在ubuntu16.04上安装成功,这里记录一下
1、在virtualbox上安装ubuntu16.04
sudo apt update
sudo apt upgrade
只更新一次,要是再更新就会被更新到ubuntu18
2、下载代码
git clone https://github.com/eosio/eos --recursive
cd eos/script
./eosio_build.sh
这个时候一堆错误
3、安装必要的包
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install libstdc++6
继续执行./eosio_build.sh,还需要安装
_______ _______ _______ _________ _______
( ____ \( ___ )( ____ \\__ __/( ___ )
| ( \/| ( ) || ( \/ ) ( | ( ) |
| (__ | | | || (_____ | | | | | |
| __) | | | |(_____ ) | | | | | |
| ( | | | | ) | | | | | | |
| (____/\| (___) |/\____) |___) (___| (___) |
(_______/(_______)\_______)\_______/(_______)
EOSIO has been successfully built. 01:24:43
==============================================================================================
(Optional) Testing Instructions:
/home/elikong/bin/mongod --dbpath /home/elikong/data/mongodb -f /home/elikong/etc/mongod.conf --logpath /home/elikong/var/log/mongodb/mongod.log &
cd ./build && PATH=$PATH:/home/elikong/opt/mongodb/bin make test
================================================================================
4、继续
cd ../build
sudo make install
5、执行
6、查看版本信息
git log
commit 5082391c60b0fa5e68157c385cd402bf25aea934
Merge: 448287d 784939c
Author: arhag <arhag@users.noreply.github.com>
Date: Tue Jun 4 16:06:01 2019 -0400
Merge pull request #7466 from EOSIO/merge-release-1.7.4-to-master
Merge release 1.7.4 to master
ubuntu版本:
cat /etc/issue
Ubuntu 16.04.6 LTS \n \l
sudo lsb_release -a
[sudo] password for elikong:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
网友评论