报错1:
[: unexpected operator
解决办法:修改sh默认连接到bash
sudo dpkg-reconfigure dash
然后会弹出界面,选择no 即可!
报错2:
-bash: make: command not found
解决办法:
sudo apt-get update sudo apt-get install gcc automake autoconf libtool make
报错3
报错1按解决方法操作后还是会有
bin/sh: 1: syntax error: "(" unexpected
报错位置在Makefile中make语句中的$(shell pwd)部分。
检查代码目录的目录名,把目录中带括号改名,去掉名字中的括号
最终正常运行。
参考文章:
解决/bin/sh: 1: syntax error: "(" unexpected错误,以及更换bash仍然无法解决的问题 - 码上快乐
解决Linux下编译.sh文件报错 “[: unexpected operator”-CSDN博客
-bash: make: command not found的解决办法_-bash: make: 未找到命令-CSDN博客