I am trying to install the RTMP module on Ubuntu 16.04.4 LTS. Here is what I've done...
add-apt-repository -y ppa:nginx/stable
vim /etc/apt/sources.list.d/nginx-ubuntu-stable-xenial.list
# Uncomment deb-src http://ppa.launchpad.net/nginx/stable/ubuntu xenial main
apt-get update
apt-get install dpkg-dev
mkdir /usr/src/nginx && cd /usr/src/nginx
apt-get source nginx
git clone https://github/arut/nginx-rtmp-module.git
cd nginx-1.12.2
vim debian/rules
# Added --add-module=/usr/src/nginx/nginx-rtmp-module to the full install flags
apt-get build-dep nginx
dpkg-buildpackage -b
cd ../
dpkg --install nginx-common_1.12.2-0+xenial0_all.deb nginx-full_1.12.2-0+xenial0_amd64.deb
However, when trying to run the install command I get the following error...
(Reading database ... 100580 files and directories currently installed.)
Preparing to unpack nginx-common_1.12.2-0+xenial0_all.deb ...
Unpacking nginx-common (1.12.2-0+xenial0) over (1.12.2-0+xenial0) ...
Preparing to unpack nginx-full_1.12.2-0+xenial0_amd64.deb ...
Unpacking nginx-full (1.12.2-0+xenial0) over (1.12.2-0+xenial0) ...
Setting up nginx-common (1.12.2-0+xenial0) ...
dpkg: dependency problems prevent configuration of nginx-full:
nginx-full depends on libnginx-mod-http-auth-pam (= 1.12.2-0+xenial0); however:
Package libnginx-mod-http-auth-pam is not installed.
nginx-full depends on libnginx-mod-http-dav-ext (= 1.12.2-0+xenial0); however:
Package libnginx-mod-http-dav-ext is not installed.
nginx-full depends on libnginx-mod-http-echo (= 1.12.2-0+xenial0); however:
Package libnginx-mod-http-echo is not installed.
nginx-full depends on libnginx-mod-http-geoip (= 1.12.2-0+xenial0); however:
Package libnginx-mod-http-geoip is not installed.
nginx-full depends on libnginx-mod-http-image-filter (= 1.12.2-0+xenial0); however:
Package libnginx-mod-http-image-filter is not installed.
nginx-full depends on libnginx-mod-http-subs-filter (= 1.12.2-0+xenial0); however:
Package libnginx-mod-http-subs-filter is not installed.
nginx-full depends on libnginx-mod-http-upstream-fair (= 1.12.2-0+xenial0); however:
Package libnginx-mod-http-upstream-fair is not installed.
nginx
dpkg: error processing package nginx-full (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
nginx-full