文章内容

2023/2/16 10:36:16,作 者: 黄兵

/bin/sh: 3: cmake: not found

在编译 Nginx http/3 模块的时候出现了如下错误:

/bin/sh: 3: cmake: not found

make[1]: *** [objs/Makefile:1603: ../quiche/deps/boringssl/.openssl/include/openssl/ssl.h] Error 127

make[1]: Leaving directory '/root/nginx-1.19.1'

make: *** [Makefile:8: build] Error 2

出现错误的原因:

缺少 CMake 工具。

CMake是一组开源工具,可让您更轻松地测试、编译和部署软件。CMake 独立于编译器,吸引了不同计算机编程语言的开发人员。

解决方案:

安装 CMake,Ubuntu 执行如下命令:

sudo apt install cmake


参考资料:

1、Installing CMake on Ubuntu


黄兵个人博客原创。

转载请注明出处:黄兵个人博客 - /bin/sh: 3: cmake: not found

分享到:

发表评论

评论列表