简体   繁体   English

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

[英]Nginx - src/core/ngx_sha1.h:19:17: no such file or directory

I try to install nginx with nginx-push-stream-module 我尝试使用nginx-push-stream-module安装nginx

./configure --prefix=/etc/nginx --add-module=../nginx-push-stream-module
make
make install

After I run 'make', I got this message: 运行“ 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.

I resolved this issue on Ubuntu by installing openssl libs: 我通过安装openssl libs在Ubuntu上解决了这个问题:

sudo apt-get install openssl openssl-dev

Then did a make clean and: 然后进行清洁并:

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

and run make again. 然后再次运行make。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM