美文网首页区块链eos项目
(一)区块链项目EOS 编译安装

(一)区块链项目EOS 编译安装

作者: 站长_郭生 | 来源:发表于2018-03-22 15:12 被阅读0次

    项目简介

    github: https://github.com/EOSIO/eos
    EOS其实是相当于升级版的以太坊,支持每秒数百万笔交易。
    以太坊智能合约是收费的,而EOS免费,APP的开发者可根据拥有的EOS代币的数量来使用系统的存储资源。
    使用DPOS共识机制,不需要挖矿,不易产生分叉;而比特币和以太坊使用PoW挖矿,出矿就很慢。

    MAC安装

    • git clone https://github.com/EOSIO/eos --recursive
    • git checkout vDAWN-2018-02-14
    • 安装sh脚本安装 或者 文档里的流程都可以
    • 安装遇到编译不过问题处理
      • CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
        Please set them or make sure they are set and tested correctly in the CMake files:
        EOS_LIBBSONCXX
        linked by target "db_plugin" in directory /Users/x/x/x/eos/plugins/db_plugin
        EOS_LIBMONGOCXX
        linked by target "db_plugin" in directory /Users/x/x/x/eos/plugins/db_plugin

      • 在cmake命令加上参数

      -DEOS_LIBBSONCXX=/usr/local/lib/libbsoncxx.dylib - 
      DEOS_LIBMONGOCXX=/usr/local/lib/libmongocxx.dylib
      
    • 编译成功后进入/Users/tiger/eos/build/programs/eosd
      • 运行 ./eosd
      • 报错后 修改data-dir/config.ini 参考github文档
    • 再次运行./eosd 运行成功

    相关文章

      网友评论

        本文标题:(一)区块链项目EOS 编译安装

        本文链接:https://www.haomeiwen.com/subject/xuyaqftx.html