Learning Diary, installing EOS into my Mac ,学习笔记,安装EOS进我私人MAC电脑

Hello Steemit friends, while waiting for the mainnet to launch, I figured why not I start downloading the node and start to play around with the code first , so I tried to install EOS on my mac computer and try run it

大家好,EOS主网迟迟不上线,我等不及了,必须先安装EOS进个人电脑来加快学习,我先安装完整版用下面的代码

  1. First attempt using full installation
    第一次尝试安装
git clone https://github.com/EOSIO/eos --recursive
cd eos
./eosio_build.sh

It failed with error message such as below
得到了下面的问题出错

WhatsApp Image 2018-06-08 at 8.46.31 PM.jpeg

then i try installing into ubuntu cloud hosting and get error message as below
然后不死心,再到Digital Ocean那里租个ubuntu cloud hosting来尝试安装

WhatsApp Image 2018-06-08 at 8.48.31 PM.jpeg

So it appear that due to different Operating system, different library, different environment can cause a lot of trouble and tons and tons of error, so after consulting from @superoo7, he suggest me to try docker instead, because docker will cater for all the environment stuff and all you need to do is to get the docker software

看来要安装完整版不容易,因为有太多因素比如系统不同,环境不同等造成的错误,好在@superoo7告诉我可以尝试Docker,

So after downloading docker, i can try install EOS docker into my Mac by using below command
安装了docker后,就可以用以下的代码来安装

$ git clone https://github.com/EOSIO/eos.git --recursive
$ cd eos/Docker
$ docker build . -t eosio/eos

then can start the nodeos and keosd using below command
开始跑nodeos和keosd的程序

$ docker-compose up

I get error saying ERROR: Volume nodeos-data-volume declared as external, but could not be found. Please create the volume manually using "docker volume create --name=nodeos-data-volume" and try again.
又出错了,需要加容量,所以就加吧

So I just follow the order by typing

docker volume create --name=nodeos-data-volume

then it say ERROR: Volume keosd-data-volume declared as external, but could not be found. Please create the volume manually using "docker volume create --name=keosd-data-volume" and try again

又出错了,需要加容量,所以再加吧

so again, just create the volume by typing

docker volume create --name=keosd-data-volume

then i can start the node using the
再试看跑nodeos和keosd的程序

$ docker-compose up

and here I am the nodeos is starting
终于跑了,现在就是矿机跑了

Screen Shot 2018-06-09 at 11.53.57 AM.png

Now that the EOS node is up, i can use another window to check the status as below

然后我们可以用另一个窗口看看跑到如何

 ./cleos.sh get info

as below
Screen Shot 2018-06-09 at 11.54.57 AM.png

I think thats all for today, there are way too many things to learn
今天就学到这吧,还有太多需要多多学习

thanks for reading
谢谢阅读

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
6 Comments