nginx添加nginx-rtmp-module报错

环境:centos7、nginx1.17.3

执行代码及报错:

[root@ffc86f9b2f47 nginx-1.17.3]# ./configure --add-module=/home/nginx/nginx-rtmp-module/
checking for OS
 + Linux 3.10.0-1062.4.1.el7.x86_64 x86_64
checking for C compiler ... not found

./configure: error: C compiler cc is not found

原因:缺少环境

解决办法:

安装相关环境

yum install -y gcc pcre pcre-devel openssl openssl-devel gd gd-devel

然后再重新执行nginx添加模块命令

你可能感兴趣的:(服务)