Nginx-src/core/ngx_sha1.h:19:17:没有这样的文件或目录

Nginx-src/core/ngx_sha1.h:19:17:没有这样的文件或目录,nginx,compilation,compiler-errors,makefile,Nginx,Compilation,Compiler Errors,Makefile,我尝试使用nginx推流模块安装nginx ./configure --prefix=/etc/nginx --add-module=../nginx-push-stream-module make make install 运行“make”后,我收到以下消息: In file included from src/core/ngx_crypt.c:12:0: src/core/ngx_sha1.h:19:17: fatal error: sha.h: No such file or direc

我尝试使用nginx推流模块安装nginx

./configure --prefix=/etc/nginx --add-module=../nginx-push-stream-module
make
make install
运行“make”后,我收到以下消息:

In file included from src/core/ngx_crypt.c:12:0:
src/core/ngx_sha1.h:19:17: fatal error: sha.h: No such file or directory
 #include <sha.h>
                 ^
compilation terminated.
包含在src/core/ngx_crypt.c:12:0:
src/core/ngx_sha1.h:19:17:致命错误:sha.h:没有这样的文件或目录
#包括
^
编译终止。

我通过安装openssl libs在Ubuntu上解决了这个问题:

sudo apt-get install openssl openssl-dev
然后做了一个清洁和:

./configure --add-module=../nginx-push-stream-module

然后再次运行make。

首先,必须检查(完整)路径。你下载并解压缩了吗?模块在哪里?你在下载或存档时遇到什么麻烦了吗?您是否检查了完整性(md5等)?