Skip to content

Instantly share code, notes, and snippets.

@nwgat
Forked from sandfox/README.md
Last active December 9, 2016 21:16
Show Gist options
  • Save nwgat/b1adcd5f050e3b6e9f734b6c04ac9fd4 to your computer and use it in GitHub Desktop.
Save nwgat/b1adcd5f050e3b6e9f734b6c04ac9fd4 to your computer and use it in GitHub Desktop.
Quick and dirty instructions for building nginx with rtmp support

#Compiling Nginx with RTMP module

  1. Install the following packages sudo apt-get install python-software-properties dpkg-dev git
  2. Add Nginx repo sudo add-apt-repository ppa:nginx/stable
  3. Update package list sudo apt-get update
  4. Get nginx source (put this in it's own dir like /build sudo apt-get source nginx-full
  5. Move into the src dir cd nginx-*
  6. Grab the build dependecies for nginx-full sudo apt-get build-dep nginx-full
  7. Grab the nginx-rtmp-module source into modules folder for the nginx source cd debian/modules git clone git://github.com/arut/nginx-rtmp-module.git
  8. Move back into the src dir cd /build/nginx-*
  9. Add the module to the configure rules in nano debian/rules for all the versions --add-module=$(MODULESDIR)/nginx-rtmp-module \
  10. Make an update to the changelog dch -i
  11. rebuild the package sudo dpkg-buildpackage -uc -b
  12. The debs can be installed using sudo dpkg -i PACKAGE_NAME.deb (you'll need to move all the debs)

This can probably be done a slightly less clunky fashion or by using the Launchpad PPA system somehow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment