Build NGINX with module?

I'm trying to build NGINX with a custom module.

I clone the module I want to use.

I then clone NGINX.

I change directory into the nginx/auto, where I try to run the configure script with:

sudo ./configure --add-module=/home/philip/projects/nginx-rtmp-module

I get back the error:

./configure: 10: .: Can't open auto/options

Am I missing a step here?


Solution 1:

If the source code is cloned from github, you should use ./auto/configure in the root directory instead of ./configure in auto directory.