目录

排错-FISCO-BCOS区块链网络-3.-编译智能合约

排错 – FISCO BCOS区块链网络 – 3. 编译智能合约

文章为FISCO BCOS2.0搭建区块链平台中发现的问题与总结,出错原因不唯一 ,解决办法不唯一

目前社区缺少完整,稳定的搭建平台和教程 ,欢迎各位及时补充,如有错误请及时评论纠正!

感谢各位搜索到这里,祝一切顺利。

搭建中文文档链接 :

当前进度:

  1. 编译智能合约
# 若控制台版本大于等于2.8.0,编译合约方法如下:(可通过bash sol2java.sh -h命令查看该脚本使用方法)
bash sol2java.sh -p org.fisco.bcos.asset.contract 

报错显示:


1. *** Compile solidity Asset.sol***
ERROR:convert solidity to java for Asset.sol failed, error info:  Compile error: /home/chilly/fisco/console/contracts/solidity/Asset.sol:178:1: Error: Expected ';' but got identifier
A

2. ~/fisco$ cd ~/fisco && curl -#LO https://github.c                                                                                     om/FISCO-BCOS/console/releases/download/v2.9.2/download_console.sh && bash down                                                                                     load_console.sh
curl: (7) Failed to connect to github.com port 443: 拒绝连接


3.~/fisco$ cd dist
-bash: cd: dist: 没有那个文件或目录

三个报错方式各有各的不同删除重做之后归根结底是 上一步下载源没有下载完成

https://i-blog.csdnimg.cn/direct/36cd236863a34e9ab8139d71cee30660.png

解决办法:

返回到上一步多试几遍重新进行下载

curl -#LO https://github.com/FISCO-BCOS/LargeFiles/raw/master/tools/asset-app.tar.gz

下载过程很慢  暂时没有找到合适的源  如果报错不要怀疑多试几次就好啦 ~

确认进度条到100%之后再进行下一步解压缩 后面就恢复正常啦 ~

https://i-blog.csdnimg.cn/direct/2f05312687cb492dadd09671d36d6cd0.png

https://i-blog.csdnimg.cn/direct/8c7ec4ec86d2443a850dfee65ce21e71.png