Skip to content

RPM SPEC file to build Nginx with embedded Lua interpreter

License

Notifications You must be signed in to change notification settings

jynxy/nginx-lua-centos7

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

nginx-lua-centos7

Build nginx with lua for CentOS7 or RHEL7

Do not run this as root!

  1. Initialize RPM build environment

    mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

    echo "%_topdir %(echo $HOME)/rpmbuild" > ~/.rpmmacros

  2. Install nginx source RPM

    wget http://nginx.org/packages/rhel/7/SRPMS/nginx-1.6.3-1.el7.ngx.src.rpm

  3. Download additional sources

    spectool -g -R nginx-lua.spec

  4. Install stuff for building

    yum -y install gcc openssl-devel zlib-devel pcre-devel lua

  5. Install lua-devel, which is not present in standard repos including EPEL for some reason

    sudo yum -y install ftp://rpmfind.net/linux/centos/7/os/x86_64/Packages/lua-devel-5.1.4-14.el7.x86_64.rpm

Tested on RHEL 7.0 (Maipo) x86_64

About

RPM SPEC file to build Nginx with embedded Lua interpreter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published