Last active
August 29, 2015 14:01
-
-
Save leite/9236fe3033d5779cdb05 to your computer and use it in GitHub Desktop.
openresty with LuaJIT (Lua 5.2 compatible)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /opt | |
sudo wget http://www.openssl.org/source/openssl-0.9.8y.tar.gz | |
sudo tar zxf openssl-0.9.8y.tar.gz | |
sudo wget http://zlib.net/zlib-1.2.8.tar.gz | |
sudo tar zxf zlib-1.2.8.tar.gz | |
cd zlib-1.2.8 | |
sudo ./configure | |
sudo make -j4 && sudo make install && cd .. | |
sudo wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.35.tar.gz | |
sudo tar zxf pcre-8.35.tar.gz | |
cd pcre-8.35 | |
sudo ./configure --enable-jit | |
sudo make -j4 && sudo make install && cd .. | |
sudo wget http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-7.2.tar.gz | |
sudo tar zxf libatomic_ops-7.2.tar.gz | |
cd libatomic_ops-7.2 | |
sudo ./configure | |
sudo make -j4 && sudo make install && cd .. | |
sudo ./configure --with-luajit-xcflags=-DLUAJIT_ENABLE_LUA52COMPAT --with-zlib=/opt/zlib-1.2.8 --with-pcre=/opt/pcre-8.35 --with-pcre-jit --with-md5-asm --with-sha1-asm --with-libatomic=/opt/libatomic_ops-7.2 --with-openssl=/opt/openssl-0.9.8y --with-file-aio --user=nginx --group=www-data | |
sudo make -j4 && sudo make install | |
sudo ln -sf /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment