官方文档只有执行过程,其中一些出现的问题并没有提供解决方式,此文章详细讲解了如何进行部署,包成功。
执行前提
所用Ubuntu版本iso原文件下载地址
https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/22.04.3/ubuntu-22.04.3-desktop-amd64.iso
执行命令
git clone https://gitee.com/FISCO-BCOS/generator.git
会提示
找不到命令 “git”,但可以通过以下软件包安装它:
sudo apt install git
执行命令
sudo apt install git
执行命令
git clone https://gitee.com/FISCO-BCOS/generator.git
执行命令
cd ~/generator
sudo bash ./scripts/install.sh
会提示
python and pip is not same version
python -V, get version => line
./scripts/install.sh: line 145: -V: command not found
pip -V, get version => not
./scripts/install.sh: line 147: not: command not found
解释一下,这里是说找不到pip。找不到python,以及pip和python版本不匹配
解决方法:
1.文件管理器》计算机》usr》bin
2.在上方搜索框搜索python查看原有python版本,使用前文推荐的链接下载的iso则会有python2.7和python3.10
3.在上方搜索框搜索pip查看原有pip版本,使用前文推荐的链接下载的iso则会只有pip2
4.因为上述错误是执行python -V和pip -V找不到,但是机器上有python,并且没有与python2.7对应的pip2
sudo ln -s /usr/bin/pip2 /usr/bin/pip
执行命令
sudo ln -s /usr/bin/python2.7 /usr/bin/python
执行命令
sudo bash ./scripts/install.sh
提示
Successfully installed configparser-4.0.2 six-1.16.0
install generator successful!
这里就安装成功
执行命令
./gen

最低0.47元/天 解锁文章
590

被折叠的 条评论
为什么被折叠?



