configure: line 481: sed: command not found

发布时间 2023-08-08 12:23:35作者: 悟透

执行 configure 时,提示各种命令都没有找到

一、执行

./configure CFLAGS=-D_GNU_SOURCE

二、错误提示

./configure CFLAGS=-D_GNU_SOURCE
./configure: line 481: sed: command not found
./configure: line 480: expr: command not found
./configure: line 481: sed: command not found
./configure: line 495: sed: command not found
: error: cannot create .lineno; rerun with a POSIX shell

三、解决方法:

是否添加新路径时,把原有路径值给覆盖了。

echo $PATH

如果里面只有你新添加的路径,那就不对了。
再新开个 终端 窗口,执行 echo $PATH 看看输出结果。
复制过来。重新添加回去。




参考: