博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
EOS使用
阅读量:7294 次
发布时间:2019-06-30

本文共 1988 字,大约阅读时间需要 6 分钟。

公司要玩区块链,听说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其实就可以直接编译成功。

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

学习网址推荐:

 

实际操作:

eosRPC接口描述,必看:

钱包账号关系:

用docker运行eos:

eos接口实战:

eos许可授权:

转载于:https://www.cnblogs.com/bugutian/p/9171371.html

你可能感兴趣的文章
Linux Shell脚本实现根据进程名杀死进程
查看>>
[logstash-input-file]插件使用详解
查看>>
Codeforces 839D Winter is here【数学:容斥原理】
查看>>
FPGA在各行业的应用分析
查看>>
PostgreSQL 实时位置跟踪+轨迹分析系统实践 - 单机顶千亿轨迹/天
查看>>
js template实现方法
查看>>
(译)理解 LSTM 网络 (Understanding LSTM Networks by colah)
查看>>
java 反射
查看>>
[Android1.6]继承BaseAdapter为GridView设置数据时设置setLayoutParams时注意
查看>>
Winform开发几个常用的开发经验及知识积累(一)
查看>>
【FTP】java FTPClient 文件上传内容为空,文件大小为0
查看>>
Winform开发框架里面使用事务操作的原理及介绍
查看>>
Error:(108) No resource identifier found for attribute 'style' in package 'android'
查看>>
从JavaScript函数重名看其初始化方式
查看>>
用系统滚动条实现NumericUpDown的原理
查看>>
就不可以认真点么.
查看>>
JSP标签JSTL(4)--URL
查看>>
DiscuX END - 553 Envolope sender mismatch with header from..
查看>>
论文笔记之:Instance-aware Semantic Segmentation via Multi-task Network Cascades
查看>>
单例模式
查看>>