编译 EOS 1.8.0 by oflyhigh

View this thread on steempeak.com
· @oflyhigh ·
$16.07
编译 EOS 1.8.0
EOSIO在昨晚发布了EOSIO v1.8.0,这个版本是共识升级版本,简单来讲,相当于STEEM的硬分叉。

![](https://cdn.steemitimages.com/DQmTKdDAhhxpckwPry4SDKKbW5xfMdchfQCE4oezQZDb7oc/image.png)

这篇帖子只是简单记录一下编译的情况,升级过程将会单独开贴说明。

首先是编译参数的变化,多了个`-P`参数:
>The build scripts now support an optional parameter (-P) which will try to pin the versions of the compiler, C++ standard library, Boost library, and a few other dependent libraries that could have an impact on the ability for nodeos to access the shared memory database created by prior versions.

更多细节请参考 [EOSIO v1.8.0 Release Notes](https://github.com/EOSIO/eos/releases/tag/v1.8.0),我们来看一下支持的参数:
>`./scripts/eosio_build.sh -h`
![](https://cdn.steemitimages.com/DQmWhsLcnEsqg9uWLC9EzqCz86CQtK7rA4s7sCzprh1HnUx/image.png)

另外一点就是不同于之前的版本生成一堆乱七八糟的目录,这次会将依赖等内容统一放到一个目录内,默认为:`$HOME/eosio/1.8/`。这个目录可以用`-i`参数重新指定,但是我觉得没啥必要。

>Both EOSIO and its dependencies will be built and installed by default in a sub-directory within the user's $HOME directory that includes the major and minor version numbers of the EOSIO release. For example, the build script in this release will default to installing everything into $HOME/eosio/1.8/

我使用了`-P`参数进行编译,耗时有点久,大概编译了47分钟,编译完成后的提示图由之前的红色变成了白色,估计是一般红色都表示错误啥的,不过为何不改成绿色呢?
>![](https://cdn.steemitimages.com/DQmTKdDAhhxpckwPry4SDKKbW5xfMdchfQCE4oezQZDb7oc/image.png)

编译好了之后检查一下版本号:
>`nodeos --version`

返回的是1.8.0版本哦,看来没编译错呢,哈哈。
>![](https://cdn.steemitimages.com/DQmbZ5hSdsBiy8KFNPQhvPs6KdxSFUkPP8wjwJipAS8iSDa/image.png)

EOS的这次共识升级(硬分叉)后会支持很多新的协议特性,具体大家看 [EOSIO v1.8.0 Release Notes](https://github.com/EOSIO/eos/releases/tag/v1.8.0)吧,然后就可以在上边跑Voice等应用啦。

# 相关链接

* [EOSIO v1.8.0 Release Notes](https://github.com/EOSIO/eos/releases/tag/v1.8.0)
* [Consensus Protocol Upgrade Process #7237](https://github.com/EOSIO/eos/issues/7237)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 89 others
properties (23)
post_id77,255,286
authoroflyhigh
permlinkeos-1-8-0
categorycn
json_metadata{"tags":["cn","eos","nodeos","study","busy"],"image":["https:\/\/cdn.steemitimages.com\/DQmTKdDAhhxpckwPry4SDKKbW5xfMdchfQCE4oezQZDb7oc\/image.png","https:\/\/cdn.steemitimages.com\/DQmWhsLcnEsqg9uWLC9EzqCz86CQtK7rA4s7sCzprh1HnUx\/image.png","https:\/\/cdn.steemitimages.com\/DQmbZ5hSdsBiy8KFNPQhvPs6KdxSFUkPP8wjwJipAS8iSDa\/image.png"],"links":["https:\/\/github.com\/EOSIO\/eos\/releases\/tag\/v1.8.0","https:\/\/github.com\/EOSIO\/eos\/issues\/7237"],"app":"steemit\/0.1","format":"markdown"}
created2019-06-30 02:09:06
last_update2019-06-30 02:09:06
depth0
children1
net_rshares33,249,277,464,429
last_payout2019-07-07 02:09:06
cashout_time1969-12-31 23:59:59
total_payout_value12.498 SBD
curator_payout_value3.576 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,772
author_reputation1,148,153,621,496,884
root_title"编译 EOS 1.8.0"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (153)
@partiko ·
Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!
properties (22)
post_id77,257,854
authorpartiko
permlinkre-eos-1-8-0-20190630t033040
categorycn
json_metadata{"app":"partiko"}
created2019-06-30 03:30:42
last_update2019-06-30 03:30:42
depth1
children0
net_rshares0
last_payout2019-07-07 03:30:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length213
author_reputation39,204,266,552,701
root_title"编译 EOS 1.8.0"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000