How to build nginx-vod-module on CentOS


How to build nginx-vod-module – NGINX-based VOD Packager – on CentOS?

Step 1: First, you must install some requirements like: git, gcc, gcc-c++

Install GIT

yum install git
...
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-12.el7_4 will be installed
--> Processing Dependency: perl-Git = 1.8.3.1-12.el7_4 for package: git-1.8.3.1-
12.el7_4.x86_64
--> Processing Dependency: perl >= 5.008 for package: git-1.8.3.1-12.el7_4.x86_6
4
--> Processing Dependency: perl(warnings) for package: git-1.8.3.1-12.el7_4.x86_
64
--> Processing Dependency: perl(vars) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(strict) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(lib) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-12.el7_4
.x86_64
--> Processing Dependency: perl(Git) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: git-1.8.3.1-12.el7_4.
x86_64
--> Processing Dependency: perl(File::stat) for package: git-1.8.3.1-12.el7_4.x8
6_64
--> Processing Dependency: perl(File::Temp) for package: git-1.8.3.1-12.el7_4.x8
6_64
--> Processing Dependency: perl(File::Spec) for package: git-1.8.3.1-12.el7_4.x8
6_64
--> Processing Dependency: perl(File::Path) for package: git-1.8.3.1-12.el7_4.x8
6_64
--> Processing Dependency: perl(File::Find) for package: git-1.8.3.1-12.el7_4.x8
6_64
--> Processing Dependency: perl(File::Copy) for package: git-1.8.3.1-12.el7_4.x8
6_64
--> Processing Dependency: perl(File::Basename) for package: git-1.8.3.1-12.el7_
4.x86_64
--> Processing Dependency: perl(Exporter) for package: git-1.8.3.1-12.el7_4.x86_
64
--> Processing Dependency: perl(Error) for package: git-1.8.3.1-12.el7_4.x86_64
--> Processing Dependency: /usr/bin/perl for package: git-1.8.3.1-12.el7_4.x86_6
4
--> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: git-1.8.3
.1-12.el7_4.x86_64
--> Running transaction check
---> Package libgnome-keyring.x86_64 0:3.12.0-1.el7 will be installed
---> Package perl.x86_64 4:5.16.3-292.el7 will be installed
--> Processing Dependency: perl-libs = 4:5.16.3-292.el7 for package: 4:perl-5.16
.3-292.el7.x86_64
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-292.el
7.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3
-292.el7.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-292.
el7.x86_64
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-292.el7.x86_
64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-292.el7.x86
_64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-292.el7.
x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-292.el7.
x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-292.el7.x86
_64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-292.el7.x86_6
4
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-292.el7
.x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-2
92.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-
292.el7.x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-2
92.el7.x86_64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-292.el
7.x86_64
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-2.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Lon
g-2.40-2.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-
2.40-2.el7.noarch
---> Package perl-Git.noarch 0:1.8.3.1-12.el7_4 will be installed
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
--> Running transaction check
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Si
mple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el
7.noarch
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1
.63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.e
l7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-libs.x86_64 4:5.16.3-292.el7 will be installed
---> Package perl-macros.x86_64 4:5.16.3-292.el7 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
--> Running transaction check
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-292.el7 will be installed
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7
.noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4
.el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
--> Running transaction check
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch       Version                Repository   Size
================================================================================
Installing:
 git                        x86_64     1.8.3.1-12.el7_4       updates     4.4 M
Installing for dependencies:
 libgnome-keyring           x86_64     3.12.0-1.el7           base        109 k
 perl                       x86_64     4:5.16.3-292.el7       base        8.0 M
 perl-Carp                  noarch     1.26-244.el7           base         19 k
 perl-Encode                x86_64     2.51-7.el7             base        1.5 M
 perl-Error                 noarch     1:0.17020-2.el7        base         32 k
 perl-Exporter              noarch     5.68-3.el7             base         28 k
 perl-File-Path             noarch     2.09-2.el7             base         26 k
 perl-File-Temp             noarch     0.23.01-3.el7          base         56 k
 perl-Filter                x86_64     1.49-3.el7             base         76 k
 perl-Getopt-Long           noarch     2.40-2.el7             base         56 k
 perl-Git                   noarch     1.8.3.1-12.el7_4       updates      53 k
 perl-HTTP-Tiny             noarch     0.033-3.el7            base         38 k
 perl-PathTools             x86_64     3.40-5.el7             base         82 k
 perl-Pod-Escapes           noarch     1:1.04-292.el7         base         51 k
 perl-Pod-Perldoc           noarch     3.20-4.el7             base         87 k
 perl-Pod-Simple            noarch     1:3.28-4.el7           base        216 k
 perl-Pod-Usage             noarch     1.63-3.el7             base         27 k
 perl-Scalar-List-Utils     x86_64     1.27-248.el7           base         36 k
 perl-Socket                x86_64     2.010-4.el7            base         49 k
 perl-Storable              x86_64     2.45-3.el7             base         77 k
 perl-TermReadKey           x86_64     2.30-20.el7            base         31 k
 perl-Text-ParseWords       noarch     3.29-4.el7             base         14 k
 perl-Time-HiRes            x86_64     4:1.9725-3.el7         base         45 k
 perl-Time-Local            noarch     1.2300-2.el7           base         24 k
 perl-constant              noarch     1.27-2.el7             base         19 k
 perl-libs                  x86_64     4:5.16.3-292.el7       base        688 k
 perl-macros                x86_64     4:5.16.3-292.el7       base         43 k
 perl-parent                noarch     1:0.225-244.el7        base         12 k
 perl-podlators             noarch     2.5.1-3.el7            base        112 k
 perl-threads               x86_64     1.87-4.el7             base         49 k
 perl-threads-shared        x86_64     1.43-6.el7             base         39 k

Transaction Summary
================================================================================
Install  1 Package (+31 Dependent packages)

Total download size: 16 M
Installed size: 59 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/base/packages/libgnome-keyring-3.12.0-1.el7.x86
_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for libgnome-keyring-3.12.0-1.el7.x86_64.rpm is not installed
(1/32): libgnome-keyring-3.12.0-1.el7.x86_64.rpm           | 109 kB   00:00
(2/32): perl-Carp-1.26-244.el7.noarch.rpm                  |  19 kB   00:00
(3/32): perl-Encode-2.51-7.el7.x86_64.rpm                  | 1.5 MB   00:00
(4/32): perl-Error-0.17020-2.el7.noarch.rpm                |  32 kB   00:00
Public key for git-1.8.3.1-12.el7_4.x86_64.rpm is not installed
(5/32): git-1.8.3.1-12.el7_4.x86_64.rpm                    | 4.4 MB   00:00
(6/32): perl-Exporter-5.68-3.el7.noarch.rpm                |  28 kB   00:00
(7/32): perl-File-Path-2.09-2.el7.noarch.rpm               |  26 kB   00:00
(8/32): perl-5.16.3-292.el7.x86_64.rpm                     | 8.0 MB   00:00
(9/32): perl-File-Temp-0.23.01-3.el7.noarch.rpm            |  56 kB   00:00
(10/32): perl-Filter-1.49-3.el7.x86_64.rpm                 |  76 kB   00:00
(11/32): perl-Getopt-Long-2.40-2.el7.noarch.rpm            |  56 kB   00:00
(12/32): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm             |  38 kB   00:00
(13/32): perl-Pod-Escapes-1.04-292.el7.noarch.rpm          |  51 kB   00:00
(14/32): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm            |  87 kB   00:00
(15/32): perl-Pod-Simple-3.28-4.el7.noarch.rpm             | 216 kB   00:00
(16/32): perl-Pod-Usage-1.63-3.el7.noarch.rpm              |  27 kB   00:00
(17/32): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm    |  36 kB   00:00
(18/32): perl-Socket-2.010-4.el7.x86_64.rpm                |  49 kB   00:00
(19/32): perl-Storable-2.45-3.el7.x86_64.rpm               |  77 kB   00:00
(20/32): perl-TermReadKey-2.30-20.el7.x86_64.rpm           |  31 kB   00:00
(21/32): perl-Text-ParseWords-3.29-4.el7.noarch.rpm        |  14 kB   00:00
(22/32): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm           |  45 kB   00:00
(23/32): perl-Time-Local-1.2300-2.el7.noarch.rpm           |  24 kB   00:00
(24/32): perl-constant-1.27-2.el7.noarch.rpm               |  19 kB   00:00
(25/32): perl-libs-5.16.3-292.el7.x86_64.rpm               | 688 kB   00:00
(26/32): perl-macros-5.16.3-292.el7.x86_64.rpm             |  43 kB   00:00
(27/32): perl-parent-0.225-244.el7.noarch.rpm              |  12 kB   00:00
(28/32): perl-podlators-2.5.1-3.el7.noarch.rpm             | 112 kB   00:00
(29/32): perl-threads-1.87-4.el7.x86_64.rpm                |  49 kB   00:00
(30/32): perl-threads-shared-1.43-6.el7.x86_64.rpm         |  39 kB   00:00
(31/32): perl-Git-1.8.3.1-12.el7_4.noarch.rpm              |  53 kB   00:00
(32/32): perl-PathTools-3.40-5.el7.x86_64.rpm              |  82 kB   00:00
--------------------------------------------------------------------------------
Total                                               11 MB/s |  16 MB  00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org
>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-4.1708.el7.centos.x86_64 (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:perl-parent-0.225-244.el7.noarch                          1/32
  Installing : perl-HTTP-Tiny-0.033-3.el7.noarch                           2/32
  Installing : perl-podlators-2.5.1-3.el7.noarch                           3/32
  Installing : perl-Pod-Perldoc-3.20-4.el7.noarch                          4/32
  Installing : 1:perl-Pod-Escapes-1.04-292.el7.noarch                      5/32
  Installing : perl-Text-ParseWords-3.29-4.el7.noarch                      6/32
  Installing : perl-Encode-2.51-7.el7.x86_64                               7/32
  Installing : perl-Pod-Usage-1.63-3.el7.noarch                            8/32
  Installing : 4:perl-macros-5.16.3-292.el7.x86_64                         9/32
  Installing : 4:perl-libs-5.16.3-292.el7.x86_64                          10/32
  Installing : perl-Storable-2.45-3.el7.x86_64                            11/32
  Installing : perl-Exporter-5.68-3.el7.noarch                            12/32
  Installing : perl-constant-1.27-2.el7.noarch                            13/32
  Installing : perl-Time-Local-1.2300-2.el7.noarch                        14/32
  Installing : perl-Socket-2.010-4.el7.x86_64                             15/32
  Installing : perl-Carp-1.26-244.el7.noarch                              16/32
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                      17/32
  Installing : perl-PathTools-3.40-5.el7.x86_64                           18/32
  Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 19/32
  Installing : perl-File-Temp-0.23.01-3.el7.noarch                        20/32
  Installing : perl-File-Path-2.09-2.el7.noarch                           21/32
  Installing : perl-threads-shared-1.43-6.el7.x86_64                      22/32
  Installing : perl-threads-1.87-4.el7.x86_64                             23/32
  Installing : perl-Filter-1.49-3.el7.x86_64                              24/32
  Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch                        25/32
  Installing : perl-Getopt-Long-2.40-2.el7.noarch                         26/32
  Installing : 4:perl-5.16.3-292.el7.x86_64                               27/32
  Installing : 1:perl-Error-0.17020-2.el7.noarch                          28/32
  Installing : perl-TermReadKey-2.30-20.el7.x86_64                        29/32
  Installing : libgnome-keyring-3.12.0-1.el7.x86_64                       30/32
  Installing : perl-Git-1.8.3.1-12.el7_4.noarch                           31/32
  Installing : git-1.8.3.1-12.el7_4.x86_64                                32/32
  Verifying  : perl-HTTP-Tiny-0.033-3.el7.noarch                           1/32
  Verifying  : libgnome-keyring-3.12.0-1.el7.x86_64                        2/32
  Verifying  : perl-threads-shared-1.43-6.el7.x86_64                       3/32
  Verifying  : perl-Storable-2.45-3.el7.x86_64                             4/32
  Verifying  : perl-Exporter-5.68-3.el7.noarch                             5/32
  Verifying  : perl-constant-1.27-2.el7.noarch                             6/32
  Verifying  : perl-PathTools-3.40-5.el7.x86_64                            7/32
  Verifying  : 4:perl-macros-5.16.3-292.el7.x86_64                         8/32
  Verifying  : git-1.8.3.1-12.el7_4.x86_64                                 9/32
  Verifying  : 1:perl-parent-0.225-244.el7.noarch                         10/32
  Verifying  : 4:perl-5.16.3-292.el7.x86_64                               11/32
  Verifying  : perl-TermReadKey-2.30-20.el7.x86_64                        12/32
  Verifying  : perl-File-Temp-0.23.01-3.el7.noarch                        13/32
  Verifying  : 1:perl-Pod-Simple-3.28-4.el7.noarch                        14/32
  Verifying  : perl-Time-Local-1.2300-2.el7.noarch                        15/32
  Verifying  : 4:perl-libs-5.16.3-292.el7.x86_64                          16/32
  Verifying  : perl-Pod-Perldoc-3.20-4.el7.noarch                         17/32
  Verifying  : perl-Socket-2.010-4.el7.x86_64                             18/32
  Verifying  : perl-Carp-1.26-244.el7.noarch                              19/32
  Verifying  : perl-Git-1.8.3.1-12.el7_4.noarch                           20/32
  Verifying  : 1:perl-Error-0.17020-2.el7.noarch                          21/32
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                      22/32
  Verifying  : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 23/32
  Verifying  : 1:perl-Pod-Escapes-1.04-292.el7.noarch                     24/32
  Verifying  : perl-Pod-Usage-1.63-3.el7.noarch                           25/32
  Verifying  : perl-Encode-2.51-7.el7.x86_64                              26/32
  Verifying  : perl-podlators-2.5.1-3.el7.noarch                          27/32
  Verifying  : perl-Getopt-Long-2.40-2.el7.noarch                         28/32
  Verifying  : perl-File-Path-2.09-2.el7.noarch                           29/32
  Verifying  : perl-threads-1.87-4.el7.x86_64                             30/32
  Verifying  : perl-Filter-1.49-3.el7.x86_64                              31/32
  Verifying  : perl-Text-ParseWords-3.29-4.el7.noarch                     32/32

Installed:
  git.x86_64 0:1.8.3.1-12.el7_4

Dependency Installed:
  libgnome-keyring.x86_64 0:3.12.0-1.el7
  perl.x86_64 4:5.16.3-292.el7
  perl-Carp.noarch 0:1.26-244.el7
  perl-Encode.x86_64 0:2.51-7.el7
  perl-Error.noarch 1:0.17020-2.el7
  perl-Exporter.noarch 0:5.68-3.el7
  perl-File-Path.noarch 0:2.09-2.el7
  perl-File-Temp.noarch 0:0.23.01-3.el7
  perl-Filter.x86_64 0:1.49-3.el7
  perl-Getopt-Long.noarch 0:2.40-2.el7
  perl-Git.noarch 0:1.8.3.1-12.el7_4
  perl-HTTP-Tiny.noarch 0:0.033-3.el7
  perl-PathTools.x86_64 0:3.40-5.el7
  perl-Pod-Escapes.noarch 1:1.04-292.el7
  perl-Pod-Perldoc.noarch 0:3.20-4.el7
  perl-Pod-Simple.noarch 1:3.28-4.el7
  perl-Pod-Usage.noarch 0:1.63-3.el7
  perl-Scalar-List-Utils.x86_64 0:1.27-248.el7
  perl-Socket.x86_64 0:2.010-4.el7
  perl-Storable.x86_64 0:2.45-3.el7
  perl-TermReadKey.x86_64 0:2.30-20.el7
  perl-Text-ParseWords.noarch 0:3.29-4.el7
  perl-Time-HiRes.x86_64 4:1.9725-3.el7
  perl-Time-Local.noarch 0:1.2300-2.el7
  perl-constant.noarch 0:1.27-2.el7
  perl-libs.x86_64 4:5.16.3-292.el7
  perl-macros.x86_64 4:5.16.3-292.el7
  perl-parent.noarch 1:0.225-244.el7
  perl-podlators.noarch 0:2.5.1-3.el7
  perl-threads.x86_64 0:1.87-4.el7
  perl-threads-shared.x86_64 0:1.43-6.el7

Complete!

Install GCC, GCC-C++

[root@tutorialspots src]# yum install gcc gcc-c++
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
 * updates: mirror.nus.edu.sg
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-16.el7_4.1 will be installed
--> Processing Dependency: cpp = 4.8.5-16.el7_4.1 for package: gcc-4.8.5-16.el7_
4.1.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-16.el
7_4.1.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-16.el7_4
.1.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-16.el7_4.
1.x86_64
---> Package gcc-c++.x86_64 0:4.8.5-16.el7_4.1 will be installed
--> Processing Dependency: libstdc++-devel = 4.8.5-16.el7_4.1 for package: gcc-c
++-4.8.5-16.el7_4.1.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-16.el7_4.1 will be installed
---> Package glibc-devel.x86_64 0:2.17-196.el7_4.2 will be installed
--> Processing Dependency: glibc-headers = 2.17-196.el7_4.2 for package: glibc-d
evel-2.17-196.el7_4.2.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-196.el7_4
.2.x86_64
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package libstdc++-devel.x86_64 0:4.8.5-16.el7_4.1 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-196.el7_4.2 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.
17-196.el7_4.2.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-196.el
7_4.2.x86_64
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-693.11.6.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch        Version                    Repository    Size
================================================================================
Installing:
 gcc                  x86_64      4.8.5-16.el7_4.1           updates       16 M
 gcc-c++              x86_64      4.8.5-16.el7_4.1           updates      7.2 M
Installing for dependencies:
 cpp                  x86_64      4.8.5-16.el7_4.1           updates      5.9 M
 glibc-devel          x86_64      2.17-196.el7_4.2           updates      1.1 M
 glibc-headers        x86_64      2.17-196.el7_4.2           updates      676 k
 kernel-headers       x86_64      3.10.0-693.11.6.el7        updates      6.0 M
 libmpc               x86_64      1.0.1-3.el7                base          51 k
 libstdc++-devel      x86_64      4.8.5-16.el7_4.1           updates      1.5 M
 mpfr                 x86_64      3.1.1-4.el7                base         203 k

Transaction Summary
================================================================================
Install  2 Packages (+7 Dependent packages)

Total download size: 39 M
Installed size: 84 M
Is this ok [y/d/N]: y
Downloading packages:
(1/9): cpp-4.8.5-16.el7_4.1.x86_64.rpm                     | 5.9 MB   00:00
(2/9): gcc-4.8.5-16.el7_4.1.x86_64.rpm                     |  16 MB   00:00
(3/9): gcc-c++-4.8.5-16.el7_4.1.x86_64.rpm                 | 7.2 MB   00:00
(4/9): glibc-devel-2.17-196.el7_4.2.x86_64.rpm             | 1.1 MB   00:00
(5/9): glibc-headers-2.17-196.el7_4.2.x86_64.rpm           | 676 kB   00:00
(6/9): libstdc++-devel-4.8.5-16.el7_4.1.x86_64.rpm         | 1.5 MB   00:00
(7/9): kernel-headers-3.10.0-693.11.6.el7.x86_64.rpm       | 6.0 MB   00:00
(8/9): libmpc-1.0.1-3.el7.x86_64.rpm                       |  51 kB   00:00
(9/9): mpfr-3.1.1-4.el7.x86_64.rpm                         | 203 kB   00:00
--------------------------------------------------------------------------------
Total                                               25 MB/s |  39 MB  00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : mpfr-3.1.1-4.el7.x86_64                                      1/9
  Installing : libmpc-1.0.1-3.el7.x86_64                                    2/9
  Installing : cpp-4.8.5-16.el7_4.1.x86_64                                  3/9
  Installing : kernel-headers-3.10.0-693.11.6.el7.x86_64                    4/9
  Installing : glibc-headers-2.17-196.el7_4.2.x86_64                        5/9
  Installing : glibc-devel-2.17-196.el7_4.2.x86_64                          6/9
  Installing : gcc-4.8.5-16.el7_4.1.x86_64                                  7/9
  Installing : libstdc++-devel-4.8.5-16.el7_4.1.x86_64                      8/9
  Installing : gcc-c++-4.8.5-16.el7_4.1.x86_64                              9/9
  Verifying  : cpp-4.8.5-16.el7_4.1.x86_64                                  1/9
  Verifying  : glibc-devel-2.17-196.el7_4.2.x86_64                          2/9
  Verifying  : gcc-c++-4.8.5-16.el7_4.1.x86_64                              3/9
  Verifying  : mpfr-3.1.1-4.el7.x86_64                                      4/9
  Verifying  : libmpc-1.0.1-3.el7.x86_64                                    5/9
  Verifying  : libstdc++-devel-4.8.5-16.el7_4.1.x86_64                      6/9
  Verifying  : glibc-headers-2.17-196.el7_4.2.x86_64                        7/9
  Verifying  : gcc-4.8.5-16.el7_4.1.x86_64                                  8/9
  Verifying  : kernel-headers-3.10.0-693.11.6.el7.x86_64                    9/9

Installed:
  gcc.x86_64 0:4.8.5-16.el7_4.1        gcc-c++.x86_64 0:4.8.5-16.el7_4.1

Dependency Installed:
  cpp.x86_64 0:4.8.5-16.el7_4.1
  glibc-devel.x86_64 0:2.17-196.el7_4.2
  glibc-headers.x86_64 0:2.17-196.el7_4.2
  kernel-headers.x86_64 0:3.10.0-693.11.6.el7
  libmpc.x86_64 0:1.0.1-3.el7
  libstdc++-devel.x86_64 0:4.8.5-16.el7_4.1
  mpfr.x86_64 0:3.1.1-4.el7

Complete!

Step 2:

cd /usr/src

Step 3:

git clone https://github.com/kaltura/nginx-vod-module.git

Result:

[root@tutorialspots ~]# cd /usr/src
[root@tutorialspots src]# git clone https://github.com/kaltura/nginx-vod-
module.git
Cloning into 'nginx-vod-module'...
remote: Counting objects: 6182, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 6182 (delta 24), reused 23 (delta 14), pack-reused 6135
Receiving objects: 100% (6182/6182), 3.46 MiB | 1.25 MiB/s, done.
Resolving deltas: 100% (4631/4631), done.
[root@centos-512mb-sgp1-01 src]# yum install wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
 * updates: mirror.nus.edu.sg
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-15.el7_4.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch            Version                   Repository        Size
================================================================================
Installing:
 wget          x86_64          1.14-15.el7_4.1           updates          547 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 547 k
Installed size: 2.0 M
Is this ok [y/d/N]: y
Downloading packages:
wget-1.14-15.el7_4.1.x86_64.rpm                            | 547 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : wget-1.14-15.el7_4.1.x86_64                                  1/1
  Verifying  : wget-1.14-15.el7_4.1.x86_64                                  1/1

Installed:
  wget.x86_64 0:1.14-15.el7_4.1

Complete!

Step 4: Installing NGINX Dependencies

1. The PCRE library – required by NGINX Core and Rewrite modules and provides support for regular expressions:

Read this article: How to build the PCRE library on CentOS

2. The zlib library – required by NGINX Gzip module for headers compression:

Read this artice: How to build the zlib library on CentOS

3. The OpenSSL library – required by NGINX SSL modules to support the HTTPS protocol:

Read this artice: How to build the OpenSSL library on CentOS

Step 5:

[root@tutorialspots openssl-1.0.2n]# cd ..
[root@tutorialspots src]# wget http://nginx.org/download/nginx-1.12.2.tar
.gz
--2018-01-09 17:50:15--  http://nginx.org/download/nginx-1.12.2.tar.gz
Resolving nginx.org (nginx.org)... 206.251.255.63, 95.211.80.227, 2001:1af8:4060
:a004:21::e3, ...
Connecting to nginx.org (nginx.org)|206.251.255.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 981687 (959K) [application/octet-stream]
Saving to: `nginx-1.12.2.tar.gz'

100%[======================================>] 981,687      373KB/s   in 2.6s

2018-01-09 17:50:19 (373 KB/s) - `nginx-1.12.2.tar.gz' saved [981687/981687]

Step 6:

[root@tutorialspots src]# tar zxf nginx-1.12.2.tar.gz
[root@tutorialspots src]# cd nginx-1.12.2

Step 7: Configuring the Build Options

./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-pcre=../pcre-8.41 --with-zlib=../zlib-1.2.11 --with-http_ssl_module --with-stream --with-mail=dynamic --add-module=/usr/src/nginx-vod-module

Result:

[root@tutorialspots nginx-1.12.2]# ./configure --sbin-path=/usr/local/ngi
nx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/ngi
nx.pid --with-pcre=../pcre-8.41 --with-zlib=../zlib-1.2.11 --with-http_ssl_modul
e --with-stream --with-mail=dynamic --add-module=/usr/src/nginx-vod-module
checking for OS
 + Linux 3.10.0-693.11.6.el7.x86_64 x86_64
checking for C compiler ... found
 + using GNU C compiler
 + gcc version: 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
checking for gcc -pipe switch ... found
checking for -Wl,-E switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for EPOLLEXCLUSIVE ... not found
checking for O_PATH ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_REUSEPORT ... found
checking for SO_ACCEPTFILTER ... not found
checking for SO_BINDANY ... not found
checking for IP_BIND_ADDRESS_NO_PORT ... not found
checking for IP_TRANSPARENT ... found
checking for IP_BINDANY ... not found
checking for IP_RECVDSTADDR ... not found
checking for IP_PKTINFO ... found
checking for IPV6_RECVPKTINFO ... found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for eventfd() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint32_t ... found
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for AF_INET6 ... found
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for pwritev() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional modules
adding module in /usr/src/nginx-vod-module
checking for OpenSSL EVP library ... found
checking for iconv ... found
checking for clock_gettime() ... found
checking for libavcodec ... not found
checking for libswscale ... not found
checking for libavfilter ... not found
checking for libxml2 ... not found
 + ngx_http_vod_module was configured
checking for OpenSSL library ... found
creating objs/Makefile

Configuration summary
  + using PCRE library: ../pcre-8.41
  + using system OpenSSL library
  + using zlib library: ../zlib-1.2.11

  nginx path prefix: "/usr/local/nginx"
  nginx binary file: "/usr/local/nginx/nginx"
  nginx modules path: "/usr/local/nginx/modules"
  nginx configuration prefix: "/usr/local/nginx"
  nginx configuration file: "/usr/local/nginx/nginx.conf"
  nginx pid file: "/usr/local/nginx/nginx.pid"
  nginx error log file: "/usr/local/nginx/logs/error.log"
  nginx http access log file: "/usr/local/nginx/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"

Step 8:

make
make install

Result:

...
cc -o objs/nginx \
objs/src/core/nginx.o \
objs/src/core/ngx_log.o \
objs/src/core/ngx_palloc.o \
objs/src/core/ngx_array.o \
objs/src/core/ngx_list.o \
objs/src/core/ngx_hash.o \
objs/src/core/ngx_buf.o \
objs/src/core/ngx_queue.o \
objs/src/core/ngx_output_chain.o \
objs/src/core/ngx_string.o \
objs/src/core/ngx_parse.o \
objs/src/core/ngx_parse_time.o \
objs/src/core/ngx_inet.o \
objs/src/core/ngx_file.o \
objs/src/core/ngx_crc32.o \
objs/src/core/ngx_murmurhash.o \
objs/src/core/ngx_md5.o \
objs/src/core/ngx_sha1.o \
objs/src/core/ngx_rbtree.o \
objs/src/core/ngx_radix_tree.o \
objs/src/core/ngx_slab.o \
objs/src/core/ngx_times.o \
objs/src/core/ngx_shmtx.o \
objs/src/core/ngx_connection.o \
objs/src/core/ngx_cycle.o \
objs/src/core/ngx_spinlock.o \
objs/src/core/ngx_rwlock.o \
objs/src/core/ngx_cpuinfo.o \
objs/src/core/ngx_conf_file.o \
objs/src/core/ngx_module.o \
objs/src/core/ngx_resolver.o \
objs/src/core/ngx_open_file_cache.o \
objs/src/core/ngx_crypt.o \
objs/src/core/ngx_proxy_protocol.o \
objs/src/core/ngx_syslog.o \
objs/src/event/ngx_event.o \
objs/src/event/ngx_event_timer.o \
objs/src/event/ngx_event_posted.o \
objs/src/event/ngx_event_accept.o \
objs/src/event/ngx_event_connect.o \
objs/src/event/ngx_event_pipe.o \
objs/src/os/unix/ngx_time.o \
objs/src/os/unix/ngx_errno.o \
objs/src/os/unix/ngx_alloc.o \
objs/src/os/unix/ngx_files.o \
objs/src/os/unix/ngx_socket.o \
objs/src/os/unix/ngx_recv.o \
objs/src/os/unix/ngx_readv_chain.o \
objs/src/os/unix/ngx_udp_recv.o \
objs/src/os/unix/ngx_send.o \
objs/src/os/unix/ngx_writev_chain.o \
objs/src/os/unix/ngx_udp_send.o \
objs/src/os/unix/ngx_udp_sendmsg_chain.o \
objs/src/os/unix/ngx_channel.o \
objs/src/os/unix/ngx_shmem.o \
objs/src/os/unix/ngx_process.o \
objs/src/os/unix/ngx_daemon.o \
objs/src/os/unix/ngx_setaffinity.o \
objs/src/os/unix/ngx_setproctitle.o \
objs/src/os/unix/ngx_posix_init.o \
objs/src/os/unix/ngx_user.o \
objs/src/os/unix/ngx_dlopen.o \
objs/src/os/unix/ngx_process_cycle.o \
objs/src/os/unix/ngx_linux_init.o \
objs/src/event/modules/ngx_epoll_module.o \
objs/src/os/unix/ngx_linux_sendfile_chain.o \
objs/src/event/ngx_event_openssl.o \
objs/src/event/ngx_event_openssl_stapling.o \
objs/src/core/ngx_regex.o \
objs/src/http/ngx_http.o \
objs/src/http/ngx_http_core_module.o \
objs/src/http/ngx_http_special_response.o \
objs/src/http/ngx_http_request.o \
objs/src/http/ngx_http_parse.o \
objs/src/http/modules/ngx_http_log_module.o \
objs/src/http/ngx_http_request_body.o \
objs/src/http/ngx_http_variables.o \
objs/src/http/ngx_http_script.o \
objs/src/http/ngx_http_upstream.o \
objs/src/http/ngx_http_upstream_round_robin.o \
objs/src/http/ngx_http_file_cache.o \
objs/src/http/ngx_http_write_filter_module.o \
objs/src/http/ngx_http_header_filter_module.o \
objs/src/http/modules/ngx_http_chunked_filter_module.o \
objs/src/http/modules/ngx_http_range_filter_module.o \
objs/src/http/modules/ngx_http_gzip_filter_module.o \
objs/src/http/ngx_http_postpone_filter_module.o \
objs/src/http/modules/ngx_http_ssi_filter_module.o \
objs/src/http/modules/ngx_http_charset_filter_module.o \
objs/src/http/modules/ngx_http_userid_filter_module.o \
objs/src/http/modules/ngx_http_headers_filter_module.o \
objs/src/http/ngx_http_copy_filter_module.o \
objs/src/http/modules/ngx_http_not_modified_filter_module.o \
objs/src/http/modules/ngx_http_static_module.o \
objs/src/http/modules/ngx_http_autoindex_module.o \
objs/src/http/modules/ngx_http_index_module.o \
objs/src/http/modules/ngx_http_auth_basic_module.o \
objs/src/http/modules/ngx_http_access_module.o \
objs/src/http/modules/ngx_http_limit_conn_module.o \
objs/src/http/modules/ngx_http_limit_req_module.o \
objs/src/http/modules/ngx_http_geo_module.o \
objs/src/http/modules/ngx_http_map_module.o \
objs/src/http/modules/ngx_http_split_clients_module.o \
objs/src/http/modules/ngx_http_referer_module.o \
objs/src/http/modules/ngx_http_rewrite_module.o \
objs/src/http/modules/ngx_http_ssl_module.o \
objs/src/http/modules/ngx_http_proxy_module.o \
objs/src/http/modules/ngx_http_fastcgi_module.o \
objs/src/http/modules/ngx_http_uwsgi_module.o \
objs/src/http/modules/ngx_http_scgi_module.o \
objs/src/http/modules/ngx_http_memcached_module.o \
objs/src/http/modules/ngx_http_empty_gif_module.o \
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_hash_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/src/stream/ngx_stream.o \
objs/src/stream/ngx_stream_variables.o \
objs/src/stream/ngx_stream_script.o \
objs/src/stream/ngx_stream_handler.o \
objs/src/stream/ngx_stream_core_module.o \
objs/src/stream/ngx_stream_log_module.o \
objs/src/stream/ngx_stream_proxy_module.o \
objs/src/stream/ngx_stream_upstream.o \
objs/src/stream/ngx_stream_upstream_round_robin.o \
objs/src/stream/ngx_stream_write_filter_module.o \
objs/src/stream/ngx_stream_limit_conn_module.o \
objs/src/stream/ngx_stream_access_module.o \
objs/src/stream/ngx_stream_geo_module.o \
objs/src/stream/ngx_stream_map_module.o \
objs/src/stream/ngx_stream_split_clients_module.o \
objs/src/stream/ngx_stream_return_module.o \
objs/src/stream/ngx_stream_upstream_hash_module.o \
objs/src/stream/ngx_stream_upstream_least_conn_module.o \
objs/src/stream/ngx_stream_upstream_zone_module.o \
objs/addon/dash/edash_packager.o \
objs/addon/hls/aes_cbc_encrypt.o \
objs/addon/hls/eac3_encrypt_filter.o \
objs/addon/hls/frame_encrypt_filter.o \
objs/addon/hls/sample_aes_avc_filter.o \
objs/addon/mp4/mp4_aes_ctr.o \
objs/addon/mp4/mp4_cbcs_encrypt.o \
objs/addon/mp4/mp4_cenc_decrypt.o \
objs/addon/mp4/mp4_cenc_encrypt.o \
objs/addon/mp4/mp4_cenc_passthrough.o \
objs/addon/mss/mss_playready.o \
objs/addon/nginx-vod-module/ngx_async_open_file_cache.o \
objs/addon/nginx-vod-module/ngx_buffer_cache.o \
objs/addon/nginx-vod-module/ngx_child_http_request.o \
objs/addon/nginx-vod-module/ngx_file_reader.o \
objs/addon/nginx-vod-module/ngx_http_vod_conf.o \
objs/addon/nginx-vod-module/ngx_http_vod_dash.o \
objs/addon/nginx-vod-module/ngx_http_vod_hds.o \
objs/addon/nginx-vod-module/ngx_http_vod_hls.o \
objs/addon/nginx-vod-module/ngx_http_vod_module.o \
objs/addon/nginx-vod-module/ngx_http_vod_mss.o \
objs/addon/nginx-vod-module/ngx_http_vod_request_parse.o \
objs/addon/nginx-vod-module/ngx_http_vod_status.o \
objs/addon/nginx-vod-module/ngx_http_vod_submodule.o \
objs/addon/nginx-vod-module/ngx_http_vod_utils.o \
objs/addon/nginx-vod-module/ngx_perf_counters.o \
objs/addon/vod/avc_parser.o \
objs/addon/vod/avc_hevc_parser.o \
objs/addon/vod/buffer_pool.o \
objs/addon/vod/codec_config.o \
objs/addon/vod/common.o \
objs/addon/dash/dash_packager.o \
objs/addon/vod/dynamic_buffer.o \
objs/addon/filters/audio_filter.o \
objs/addon/filters/concat_clip.o \
objs/addon/filters/dynamic_clip.o \
objs/addon/filters/filter.o \
objs/addon/filters/gain_filter.o \
objs/addon/filters/mix_filter.o \
objs/addon/filters/rate_filter.o \
objs/addon/hds/hds_amf0_encoder.o \
objs/addon/hds/hds_fragment.o \
objs/addon/hds/hds_manifest.o \
objs/addon/vod/hevc_parser.o \
objs/addon/hls/adts_encoder_filter.o \
objs/addon/hls/buffer_filter.o \
objs/addon/hls/frame_joiner_filter.o \
objs/addon/hls/hls_muxer.o \
objs/addon/hls/id3_encoder_filter.o \
objs/addon/hls/m3u8_builder.o \
objs/addon/hls/mp4_to_annexb_filter.o \
objs/addon/hls/mpegts_encoder_filter.o \
objs/addon/input/silence_generator.o \
objs/addon/input/frames_source_cache.o \
objs/addon/input/frames_source_memory.o \
objs/addon/input/read_cache.o \
objs/addon/vod/json_parser.o \
objs/addon/vod/language_code.o \
objs/addon/vod/manifest_utils.o \
objs/addon/vod/media_format.o \
objs/addon/vod/media_set_parser.o \
objs/addon/mkv/ebml.o \
objs/addon/mkv/mkv_builder.o \
objs/addon/mkv/mkv_defs.o \
objs/addon/mkv/mkv_format.o \
objs/addon/mp4/mp4_clipper.o \
objs/addon/mp4/mp4_format.o \
objs/addon/mp4/mp4_fragment.o \
objs/addon/mp4/mp4_init_segment.o \
objs/addon/mp4/mp4_muxer.o \
objs/addon/mp4/mp4_parser.o \
objs/addon/mp4/mp4_parser_base.o \
objs/addon/mss/mss_packager.o \
objs/addon/subtitle/cap_format.o \
objs/addon/subtitle/subtitle_format.o \
objs/addon/subtitle/ttml_builder.o \
objs/addon/subtitle/webvtt_builder.o \
objs/addon/subtitle/webvtt_format.o \
objs/addon/vod/parse_utils.o \
objs/addon/vod/segmenter.o \
objs/addon/vod/udrm.o \
objs/addon/vod/write_buffer.o \
objs/addon/vod/write_buffer_queue.o \
objs/ngx_modules.o \
-ldl -lpthread -lcrypt -lcrypto -ldl -lpthread ../pcre-8.41/.libs/libpcre.a
l -lcrypto -ldl ../zlib-1.2.11/libz.a \
-Wl,-E
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail.o \
        src/mail/ngx_mail.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_core_module.o \
        src/mail/ngx_mail_core_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_handler.o \
        src/mail/ngx_mail_handler.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_parse.o \
        src/mail/ngx_mail_parse.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_pop3_module.o \
        src/mail/ngx_mail_pop3_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_pop3_handler.o \
        src/mail/ngx_mail_pop3_handler.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_imap_module.o \
        src/mail/ngx_mail_imap_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_imap_handler.o \
        src/mail/ngx_mail_imap_handler.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_smtp_module.o \
        src/mail/ngx_mail_smtp_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_smtp_handler.o \
        src/mail/ngx_mail_smtp_handler.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_auth_http_module.o \
        src/mail/ngx_mail_auth_http_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/src/mail/ngx_mail_proxy_module.o \
        src/mail/ngx_mail_proxy_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werro
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/
m \
        -o objs/ngx_mail_module_modules.o \
        objs/ngx_mail_module_modules.c
cc -o objs/ngx_mail_module.so \
objs/src/mail/ngx_mail.o \
objs/src/mail/ngx_mail_core_module.o \
objs/src/mail/ngx_mail_handler.o \
objs/src/mail/ngx_mail_parse.o \
objs/src/mail/ngx_mail_pop3_module.o \
objs/src/mail/ngx_mail_pop3_handler.o \
objs/src/mail/ngx_mail_imap_module.o \
objs/src/mail/ngx_mail_imap_handler.o \
objs/src/mail/ngx_mail_smtp_module.o \
objs/src/mail/ngx_mail_smtp_handler.o \
objs/src/mail/ngx_mail_auth_http_module.o \
objs/src/mail/ngx_mail_proxy_module.o \
objs/ngx_mail_module_modules.o \
-shared
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
        -e "s|%%PID_PATH%%|/usr/local/nginx/nginx.pid|" \
        -e "s|%%CONF_PATH%%|/usr/local/nginx/nginx.conf|" \
        -e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
        < man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/usr/src/nginx-1.12.2'
...
objs/src/os/unix/ngx_writev_chain.o \
objs/src/os/unix/ngx_udp_send.o \
objs/src/os/unix/ngx_udp_sendmsg_chain.o \
objs/src/os/unix/ngx_channel.o \
objs/src/os/unix/ngx_shmem.o \
objs/src/os/unix/ngx_process.o \
objs/src/os/unix/ngx_daemon.o \
objs/src/os/unix/ngx_setaffinity.o \
objs/src/os/unix/ngx_setproctitle.o \
objs/src/os/unix/ngx_posix_init.o \
objs/src/os/unix/ngx_user.o \
objs/src/os/unix/ngx_dlopen.o \
objs/src/os/unix/ngx_process_cycle.o \
objs/src/os/unix/ngx_linux_init.o \
objs/src/event/modules/ngx_epoll_module.o \
objs/src/os/unix/ngx_linux_sendfile_chain.o \
objs/src/event/ngx_event_openssl.o \
objs/src/event/ngx_event_openssl_stapling.o \
objs/src/core/ngx_regex.o \
objs/src/http/ngx_http.o \
objs/src/http/ngx_http_core_module.o \
objs/src/http/ngx_http_special_response.o \
objs/src/http/ngx_http_request.o \
objs/src/http/ngx_http_parse.o \
objs/src/http/modules/ngx_http_log_module.o \
objs/src/http/ngx_http_request_body.o \
objs/src/http/ngx_http_variables.o \
objs/src/http/ngx_http_script.o \
objs/src/http/ngx_http_upstream.o \
objs/src/http/ngx_http_upstream_round_robin.o \
objs/src/http/ngx_http_file_cache.o \
objs/src/http/ngx_http_write_filter_module.o \
objs/src/http/ngx_http_header_filter_module.o \
objs/src/http/modules/ngx_http_chunked_filter_module.o \
objs/src/http/modules/ngx_http_range_filter_module.o \
objs/src/http/modules/ngx_http_gzip_filter_module.o \
objs/src/http/ngx_http_postpone_filter_module.o \
objs/src/http/modules/ngx_http_ssi_filter_module.o \
objs/src/http/modules/ngx_http_charset_filter_module.o \
objs/src/http/modules/ngx_http_userid_filter_module.o \
objs/src/http/modules/ngx_http_headers_filter_module.o \
objs/src/http/ngx_http_copy_filter_module.o \
objs/src/http/modules/ngx_http_not_modified_filter_module.o \
objs/src/http/modules/ngx_http_static_module.o \
objs/src/http/modules/ngx_http_autoindex_module.o \
objs/src/http/modules/ngx_http_index_module.o \
objs/src/http/modules/ngx_http_auth_basic_module.o \
objs/src/http/modules/ngx_http_access_module.o \
objs/src/http/modules/ngx_http_limit_conn_module.o \
objs/src/http/modules/ngx_http_limit_req_module.o \
objs/src/http/modules/ngx_http_geo_module.o \
objs/src/http/modules/ngx_http_map_module.o \
objs/src/http/modules/ngx_http_split_clients_module.o \
objs/src/http/modules/ngx_http_referer_module.o \
objs/src/http/modules/ngx_http_rewrite_module.o \
objs/src/http/modules/ngx_http_ssl_module.o \
objs/src/http/modules/ngx_http_proxy_module.o \
objs/src/http/modules/ngx_http_fastcgi_module.o \
objs/src/http/modules/ngx_http_uwsgi_module.o \
objs/src/http/modules/ngx_http_scgi_module.o \
objs/src/http/modules/ngx_http_memcached_module.o \
objs/src/http/modules/ngx_http_empty_gif_module.o \
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_hash_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/src/stream/ngx_stream.o \
objs/src/stream/ngx_stream_variables.o \
objs/src/stream/ngx_stream_script.o \
objs/src/stream/ngx_stream_handler.o \
objs/src/stream/ngx_stream_core_module.o \
objs/src/stream/ngx_stream_log_module.o \
objs/src/stream/ngx_stream_proxy_module.o \
objs/src/stream/ngx_stream_upstream.o \
objs/src/stream/ngx_stream_upstream_round_robin.o \
objs/src/stream/ngx_stream_write_filter_module.o \
objs/src/stream/ngx_stream_limit_conn_module.o \
objs/src/stream/ngx_stream_access_module.o \
objs/src/stream/ngx_stream_geo_module.o \
objs/src/stream/ngx_stream_map_module.o \
objs/src/stream/ngx_stream_split_clients_module.o \
objs/src/stream/ngx_stream_return_module.o \
objs/src/stream/ngx_stream_upstream_hash_module.o \
objs/src/stream/ngx_stream_upstream_least_conn_module.o \
objs/src/stream/ngx_stream_upstream_zone_module.o \
objs/addon/dash/edash_packager.o \
objs/addon/hls/aes_cbc_encrypt.o \
objs/addon/hls/eac3_encrypt_filter.o \
objs/addon/hls/frame_encrypt_filter.o \
objs/addon/hls/sample_aes_avc_filter.o \
objs/addon/mp4/mp4_aes_ctr.o \
objs/addon/mp4/mp4_cbcs_encrypt.o \
objs/addon/mp4/mp4_cenc_decrypt.o \
objs/addon/mp4/mp4_cenc_encrypt.o \
objs/addon/mp4/mp4_cenc_passthrough.o \
objs/addon/mss/mss_playready.o \
objs/addon/nginx-vod-module/ngx_async_open_file_cache.o \
objs/addon/nginx-vod-module/ngx_buffer_cache.o \
objs/addon/nginx-vod-module/ngx_child_http_request.o \
objs/addon/nginx-vod-module/ngx_file_reader.o \
objs/addon/nginx-vod-module/ngx_http_vod_conf.o \
objs/addon/nginx-vod-module/ngx_http_vod_dash.o \
objs/addon/nginx-vod-module/ngx_http_vod_hds.o \
objs/addon/nginx-vod-module/ngx_http_vod_hls.o \
objs/addon/nginx-vod-module/ngx_http_vod_module.o \
objs/addon/nginx-vod-module/ngx_http_vod_mss.o \
objs/addon/nginx-vod-module/ngx_http_vod_request_parse.o \
objs/addon/nginx-vod-module/ngx_http_vod_status.o \
objs/addon/nginx-vod-module/ngx_http_vod_submodule.o \
objs/addon/nginx-vod-module/ngx_http_vod_utils.o \
objs/addon/nginx-vod-module/ngx_perf_counters.o \
objs/addon/vod/avc_parser.o \
objs/addon/vod/avc_hevc_parser.o \
objs/addon/vod/buffer_pool.o \
objs/addon/vod/codec_config.o \
objs/addon/vod/common.o \
objs/addon/dash/dash_packager.o \
objs/addon/vod/dynamic_buffer.o \
objs/addon/filters/audio_filter.o \
objs/addon/filters/concat_clip.o \
objs/addon/filters/dynamic_clip.o \
objs/addon/filters/filter.o \
objs/addon/filters/gain_filter.o \
objs/addon/filters/mix_filter.o \
objs/addon/filters/rate_filter.o \
objs/addon/hds/hds_amf0_encoder.o \
objs/addon/hds/hds_fragment.o \
objs/addon/hds/hds_manifest.o \
objs/addon/vod/hevc_parser.o \
objs/addon/hls/adts_encoder_filter.o \
objs/addon/hls/buffer_filter.o \
objs/addon/hls/frame_joiner_filter.o \
objs/addon/hls/hls_muxer.o \
objs/addon/hls/id3_encoder_filter.o \
objs/addon/hls/m3u8_builder.o \
objs/addon/hls/mp4_to_annexb_filter.o \
objs/addon/hls/mpegts_encoder_filter.o \
objs/addon/input/silence_generator.o \
objs/addon/input/frames_source_cache.o \
objs/addon/input/frames_source_memory.o \
objs/addon/input/read_cache.o \
objs/addon/vod/json_parser.o \
objs/addon/vod/language_code.o \
objs/addon/vod/manifest_utils.o \
objs/addon/vod/media_format.o \
objs/addon/vod/media_set_parser.o \
objs/addon/mkv/ebml.o \
objs/addon/mkv/mkv_builder.o \
objs/addon/mkv/mkv_defs.o \
objs/addon/mkv/mkv_format.o \
objs/addon/mp4/mp4_clipper.o \
objs/addon/mp4/mp4_format.o \
objs/addon/mp4/mp4_fragment.o \
objs/addon/mp4/mp4_init_segment.o \
objs/addon/mp4/mp4_muxer.o \
objs/addon/mp4/mp4_parser.o \
objs/addon/mp4/mp4_parser_base.o \
objs/addon/mss/mss_packager.o \
objs/addon/subtitle/cap_format.o \
objs/addon/subtitle/subtitle_format.o \
objs/addon/subtitle/ttml_builder.o \
objs/addon/subtitle/webvtt_builder.o \
objs/addon/subtitle/webvtt_format.o \
objs/addon/vod/parse_utils.o \
objs/addon/vod/segmenter.o \
objs/addon/vod/udrm.o \
objs/addon/vod/write_buffer.o \
objs/addon/vod/write_buffer_queue.o \
objs/ngx_modules.o \
-ldl -lpthread -lcrypt -lcrypto -ldl -lpthread ../pcre-8.41/.libs/libpcre.a -l
l -lcrypto -ldl ../zlib-1.2.11/libz.a \
-Wl,-E
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail.o \
        src/mail/ngx_mail.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_core_module.o \
        src/mail/ngx_mail_core_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_handler.o \
        src/mail/ngx_mail_handler.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_parse.o \
        src/mail/ngx_mail_parse.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_pop3_module.o \
        src/mail/ngx_mail_pop3_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_pop3_handler.o \
        src/mail/ngx_mail_pop3_handler.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_imap_module.o \
        src/mail/ngx_mail_imap_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_imap_handler.o \
        src/mail/ngx_mail_imap_handler.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_smtp_module.o \
        src/mail/ngx_mail_smtp_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_smtp_handler.o \
        src/mail/ngx_mail_smtp_handler.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_auth_http_module.o \
        src/mail/ngx_mail_auth_http_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/src/mail/ngx_mail_proxy_module.o \
        src/mail/ngx_mail_proxy_module.c
cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -
 -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.41
 ../zlib-1.2.11 -I objs -I src/http -I src/http/modules -I src/mail -I src/str
m \
        -o objs/ngx_mail_module_modules.o \
        objs/ngx_mail_module_modules.c
cc -o objs/ngx_mail_module.so \
objs/src/mail/ngx_mail.o \
objs/src/mail/ngx_mail_core_module.o \
objs/src/mail/ngx_mail_handler.o \
objs/src/mail/ngx_mail_parse.o \
objs/src/mail/ngx_mail_pop3_module.o \
objs/src/mail/ngx_mail_pop3_handler.o \
objs/src/mail/ngx_mail_imap_module.o \
objs/src/mail/ngx_mail_imap_handler.o \
objs/src/mail/ngx_mail_smtp_module.o \
objs/src/mail/ngx_mail_smtp_handler.o \
objs/src/mail/ngx_mail_auth_http_module.o \
objs/src/mail/ngx_mail_proxy_module.o \
objs/ngx_mail_module_modules.o \
-shared
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
        -e "s|%%PID_PATH%%|/usr/local/nginx/nginx.pid|" \
        -e "s|%%CONF_PATH%%|/usr/local/nginx/nginx.conf|" \
        -e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
        < man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/usr/src/nginx-1.12.2'
[root@centos-512mb-sgp1-01 nginx-1.12.2]# make install
make -f objs/Makefile install
make[1]: Entering directory `/usr/src/nginx-1.12.2'
test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
test -d '/usr/local/nginx' \
        || mkdir -p '/usr/local/nginx'
test ! -f '/usr/local/nginx/nginx' \
        || mv '/usr/local/nginx/nginx' \
                '/usr/local/nginx/nginx.old'
cp objs/nginx '/usr/local/nginx/nginx'
test -d '/usr/local/nginx' \
        || mkdir -p '/usr/local/nginx'
cp conf/koi-win '/usr/local/nginx'
cp conf/koi-utf '/usr/local/nginx'
cp conf/win-utf '/usr/local/nginx'
test -f '/usr/local/nginx/mime.types' \
        || cp conf/mime.types '/usr/local/nginx'
cp conf/mime.types '/usr/local/nginx/mime.types.default'
test -f '/usr/local/nginx/fastcgi_params' \
        || cp conf/fastcgi_params '/usr/local/nginx'
cp conf/fastcgi_params \
        '/usr/local/nginx/fastcgi_params.default'
test -f '/usr/local/nginx/fastcgi.conf' \
        || cp conf/fastcgi.conf '/usr/local/nginx'
cp conf/fastcgi.conf '/usr/local/nginx/fastcgi.conf.default'
test -f '/usr/local/nginx/uwsgi_params' \
        || cp conf/uwsgi_params '/usr/local/nginx'
cp conf/uwsgi_params \
        '/usr/local/nginx/uwsgi_params.default'
test -f '/usr/local/nginx/scgi_params' \
        || cp conf/scgi_params '/usr/local/nginx'
cp conf/scgi_params \
        '/usr/local/nginx/scgi_params.default'
test -f '/usr/local/nginx/nginx.conf' \
        || cp conf/nginx.conf '/usr/local/nginx/nginx.conf'
cp conf/nginx.conf '/usr/local/nginx/nginx.conf.default'
test -d '/usr/local/nginx' \
        || mkdir -p '/usr/local/nginx'
test -d '/usr/local/nginx/logs' \
        || mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/html' \
        || cp -R html '/usr/local/nginx'
test -d '/usr/local/nginx/logs' \
        || mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/modules' \
        || mkdir -p '/usr/local/nginx/modules'
test ! -f '/usr/local/nginx/modules/ngx_mail_module.so' \
        || mv '/usr/local/nginx/modules/ngx_mail_module.so' \
                '/usr/local/nginx/modules/ngx_mail_module.so.old'
cp objs/ngx_mail_module.so '/usr/local/nginx/modules/ngx_mail_module.so'
make[1]: Leaving directory `/usr/src/nginx-1.12.2'

Done! Now you can use nginx server with nginx_vod_module

sudo /usr/local/nginx/nginx

Test NGINX:

curl -I 127.0.0.1

Result:

[root@tutorialspots nginx-1.12.2]# curl -I 127.0.0.1
HTTP/1.1 200 OK
Server: nginx/1.12.2
Date: Tue, 09 Jan 2018 18:51:31 GMT
Content-Type: text/html
Content-Length: 612
Last-Modified: Tue, 09 Jan 2018 18:01:56 GMT
Connection: keep-alive
ETag: "5a550394-264"
Accept-Ranges: bytes

1 Comment

Leave a Reply