Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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 /build/nginx-x.x.x`
- 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 /build/nginx-x.x.x/debian/modules`
- `git clone git://github.com/arut/nginx-rtmp-module.git`
- 8. Move back into the src dir
- `cd /build/nginx-x.x.x`
- 9. Add the module to the `configure` rules in `nginx-x.x.x/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement