An example on how to rebuild nginx rpm/deb package with 3rd party module

ngx_version=$(nginx -v 2>&1 | cut -s -f2 -d '/')
ngx_config=$(nginx -V 2>&1 | cut -s -f2 -d':' | head -2 | tail -1 | awk -F '\--with-cc-opt' '{print $1}')
sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev libzip-dev
sudo mkdir ~/build && cd ~/build
sudo git clone git://github.com/arut/nginx-rtmp-module.git
sudo wget http://nginx.org/download/nginx-$ngx_version.tar.gz
sudo tar xzf nginx-$ngx_version.tar.gz && cd nginx-$ngx_version
sudo ./configure $ngx_config --add-module=../nginx-rtmp-module
sudo make
sudo make install

Like this article?

Share on facebook
Share on Facebook
Share on twitter
Share on Twitter
Share on linkedin
Share on Linkdin
Share on pinterest
Share on Pinterest

Leave a comment

2 replies on “An example on how to rebuild nginx rpm/deb package with 3rd party module”

what is purpose of add nginx-rtmp-module to nginx since ( nginx-rtmp-module ) is for stream and you didn’t mention that on article ????

this is an example on how to rebuild nginx with custom module (in this example nginx-rtmp-module) if you have installed nginx from rpm/deb repository .
I use this article as a note for my own usage needs .

Leave a Reply

Your email address will not be published. Required fields are marked *

We uses cookies to ensure you get the best experience on our website.