Nginx - src/core/ngx_sha1.h:19:17: 没有那个文件或目录
Nginx - src/core/ngx_sha1.h:19:17: no such file or directory
我尝试用 nginx-push-stream-module 安装 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.
我在 Ubuntu 上通过安装 openssl 库解决了这个问题:
sudo apt-get install openssl openssl-dev
然后做了 make clean 和:
./configure --add-module=../nginx-push-stream-module
和运行再做一次。
我尝试用 nginx-push-stream-module 安装 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.
我在 Ubuntu 上通过安装 openssl 库解决了这个问题:
sudo apt-get install openssl openssl-dev
然后做了 make clean 和:
./configure --add-module=../nginx-push-stream-module
和运行再做一次。