build.instructions.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. MANUAL PROCESS FOR CENTOS 6:
  2. The first thing you need to build/use the TURN server with CentOS is to build and install libevent 2.x.x. CentOS 6 ships with libevent 1.x.x. You can find a .spec file to build libevent 2.x.x here: https://github.com/crocodilertc/libevent
  3. To build libevent:
  4. 1) Install the dependencies for building libevent: gcc, make, redhat-rpm-config, doxygen, openssl-devel, rpm-build
  5. 2) $ mkdir ~/rpmbuild
  6. 3) $ mkdir ~/rpmbuild/SOURCES
  7. 4) $ mkdir ~/rpmbuild/SPECS
  8. 5) Put the tarball for libevent (https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz) and put it into ~/rpmbuild/SOURCES
  9. 6) Put the .spec for libevent (https://raw.github.com/crocodilertc/libevent/master/libevent.spec) into ~/rpmbuild/SPECS
  10. 7) Build the RPMs, "rpmbuild -ba ~/rpmbuild/SPECS/libevent.spec"
  11. To build the TURN server:
  12. 1) Install libevent and libevent-devel rpms
  13. 2) Install EPEL (http://fedoraproject.org/wiki/EPEL) - needed for hiredis
  14. 3) Install the dependencies for building the TURN server:
  15. gcc, make, redhat-rpm-config,
  16. openssl-devel,
  17. libevent-devel >= 2.0.0,
  18. sqlite, sqlite-devel,
  19. mysql-devel (or mariadb-devel), postgresql-devel, hiredis-devel
  20. 4) $ mkdir ~/rpmbuild
  21. 5) $ mkdir ~/rpmbuild/SOURCES
  22. 6) Export the TURN server from Github, "git clone https://github.com/coturn/coturn.git"
  23. 7) Create a tarball, "tar zcf ~/rpmbuild/SOURCES/turnserver-2.6.7.0.tar.gz turnserver-2.6.7.0"
  24. 8) Build the RPMs, "rpmbuild -ta ~/rpmbuild/SOURCES/turnserver-2.6.7.0.tar.gz"
  25. AUTOMATED PROCESS FOR CENTOS 6:
  26. $ cd <...>/coturn/rpm
  27. $ ./CentOS6.pre.build.sh
  28. $ ./build.sh
  29. (then see the tarball in ~/rpmbuild/RPMS/<arch>)
  30. AUTOMATED PROCESS FOR Fedora:
  31. $ cd <...>/coturn/rpm
  32. $ ./Fedora.pre.build.sh
  33. $ ./build.sh
  34. (then see the tarball in ~/rpmbuild/RPMS/<arch>)