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

in #programming6 years ago (edited)

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
谢谢阅读

Sort:  

你那里天气如何?才子,才女,你参加月旦评了吗?这可是我们中文区最大的活动之一啊。如果不想再收到我的留言,请回复“取消”。

You just received a Tier 0 upvote! Looking for bigger rewards? Click here and learn how to get them or visit us on Discord
If you would like to opt out of receiving comments reply with STOP

This post has been curated by TeamMalaysia Community :-

To support the growth of TeamMalaysia Follow our upvotes by using steemauto.com and follow trail of @myach

Vote TeamMalaysia witness bitrocker2020 using this link vote for witness

eos的documentation还不是很齐全,现在还只是拿来玩玩哈哈

What is the amount of space required for the base EOS setup?

What is the amount
Of space required for the
Base EOS setup?

                 - travellife


I'm a bot. I detect haiku.

Coin Marketplace

STEEM 0.27
TRX 0.11
JST 0.033
BTC 63900.26
ETH 3063.07
USDT 1.00
SBD 4.21