make: *** [全部] 错误 2

make: *** [全部] 错误 2

我尝试在我的 MacBook 上安装反编译器,但终端返回以下错误。

ouekihodos-MacBook-Pro:radare2 LewisWang$ gmake
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C libr/util
../config.mk:29: /Users/LewisWang/Desktop/Computer: No such file or directory
../config.mk:29: Programming/Hack/radare2/libr/../global.mk: No such file or directory
../config.mk:30: /Users/LewisWang/Desktop/Computer: No such file or directory
../config.mk:30: Programming/Hack/radare2/libr/../mk/.mk: No such file or directory
make[1]: *** No rule to make target `Programming/Hack/radare2/libr/../mk/.mk'.  Stop.
make: *** [all] Error 2

答案1

查看错误消息,输出看起来很可疑: You have /Users/LewisWang/Desktop/Computerand the next error Programming/Hack/radare2/libr/../global.mk。看起来实际路径是

/Users/LewisWang/Desktop/Computer Programming/Hack/radare2/libr/../global.mk

并且 make 脚本无法正确解析它。发生分词的一个常见原因是有人忘记引用 shell 变量,例如编写

touch $file

... 代替

touch "$file"

如果您尝试将其安装在不包含空格的路径中,我怀疑错误消息(如果有)会有所不同。

相关内容