mdBender
mdBender

Reputation: 369

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

I try to install nginx with nginx-push-stream-module

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

After I run 'make', I got this message:

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.

Upvotes: 1

Views: 1152

Answers (1)

Running Mike
Running Mike

Reputation: 26

I resolved this issue on Ubuntu by installing openssl libs:

sudo apt-get install openssl openssl-dev

Then did a make clean and:

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

and run make again.

Upvotes: 1

Related Questions