本文是在Fabric 2.x版本下运行
1.make:go:command not found
解决办法:切换到root用户执行go --version 发现go版本不存在(在用户模式下存在,且配置文件已经配置)此时重新source文件,之后测试go --version 发现go版本存在。继续执行make orderer命令发现执行成功。
2. 在执行make命令是发现GCC编译器不存在。
此时在ubuntu下执行安装:
- 01、首先更新包列表:
sudo apt update
- 02、键入以下命令安装build-essential软件包:
sudo apt install build-essential
该命令将安装一堆新包,包括gcc,g ++和make。
- 03、要验证GCC编译器是否已成功安装,请使用gcc --version命令打印GCC版本:
gcc --version
3.Git clone 时遇到fatal: protocol 'https' is not supported问题解决方案
原因
在粘贴地址时使用了 CTRL +V
, 在Git Bash中没有效果,然后我们就会使用右键菜单中的粘贴,但是不幸的是,使用 CTRL +V
会在Git Bash 中添加一个隐藏的符号 ^?
。
在GIt Bash 中你的克隆语句可能显示是这样正常的:
git clone https:xxxxxxxxxxx.git
但真实语句其实是这样的:
git clone ^?https://gitee.com/qianfanguojin/homework_1.git
解决:删除https
前的空格,手动输入空格
4. 问题:E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
在你使用 yum update 或 yum install xxxx,还是 apt update 或 apt install xxxx 在更新或安装时出现某种中断就会出现这种提示,出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况,解决的办法其实很简单:kill 掉 yum 或 apt 进程
解决:
pkill -9 yum
pkill -9 apt