EOS使用

公司要玩区块链,听说EOS交易快,就弄来玩玩。弄了一天终于编译成功了。

Scanning dependencies of target nodeos
[100%] Building CXX object programs/nodeos/CMakeFiles/nodeos.dir/main.cpp.o
[100%] Linking CXX executable nodeos
[100%] Built target nodeos


     _______  _______  _______ _________ _______
    (  ____ \(  ___  )(  ____ \\__   __/(  ___  )
    | (    \/| (   ) || (    \/   ) (   | (   ) |
    | (__    | |   | || (_____    | |   | |   | |
    |  __)   | |   | |(_____  )   | |   | |   | |
    | (      | |   | |      ) |   | |   | |   | |
    | (____/\| (___) |/\____) |___) (___| (___) |
    (_______/(_______)\_______)\_______/(_______)

    EOSIO has been successfully built. 00:35:25

    To verify your installation run the following commands:

    /root/opt/mongodb/bin/mongod -f /root/opt/mongodb/mongod.conf &
    source /opt/rh/python33/enable
    export PATH=${HOME}/opt/mongodb/bin:$PATH
    cd /home/eos/eos/build; make test

    For more information:
    EOSIO website: https://eos.io
    EOSIO Telegram channel @ https://t.me/EOSProject
    EOSIO resources: https://eos.io/resources/
    EOSIO Stack Exchange: https://eosio.stackexchange.com
    EOSIO wiki: https://github.com/EOSIO/eos/wiki

 编译步骤:

1. 下载代码

git clone https://github.com/eosio/eos --recursive

如果没有加"--recursive"的话,就执行:

git submodule update --init --recursive

2. 编译

./eosio_build.sh Linux full

然而故事总不会像童话那样美好。写教程的都是用MacBook的大神,用Centos就没那么好运了。

git clone执行不成功:配置代理,并为git添加代理解决了。(github也不是连不上,是有些资源无法下载下来,当然也不是一直都下不下来,运气好的时候可以一次操作成功)

git config --global http.https://github.com.proxy https://127.0.0.1:8980

取消代理的时候用:

git config --global --unset http.proxy

编译卡住,报mongodb没办法下载:(这个就没有道理了,本地都可以正常下载说连不上"s3.amazonaws.com",没办法,按照打印提供的网址自己下载),然后上传到服务器;

找到vim ./scripts/eosio_build_centos.sh中curl mongodb的那句。注释掉,直接把STATUS=200,中间还有时候无法下载,无法远程编译之类的,也通过设置代理的方法解决了。

就此编译成功了,后来从网上看资料说,直接sh eosio_build.sh,之后会有一些问是否Yes的选项,在mongodb时选No其实就可以直接编译成功。

编译完成后就可以使用了。

学习网址推荐:

实际操作:http://liyuechun.org/2018/04/13/eos-contract/

eosRPC接口描述,必看:https://eosio.github.io/eos/group__eosiorpc.html#v1walletcreate

钱包账号关系:http://baijiahao.baidu.com/s?id=1600371124073112627&wfr=spider&for=pc

用docker运行eos:https://zhuanlan.zhihu.com/p/36781721

eos接口实战:https://blog.csdn.net/yuanfangyuan_block/article/details/80421881

eos许可授权:https://eosfans.io/topics/372

猜你喜欢

转载自www.cnblogs.com/bugutian/p/9171371.html
eos
今日推荐