Edited at

nginxとmrubyのインストール

More than 1 year has passed since last update.

備忘録。


install.sh

sudo apt-get install bison

wget https://nginx.org/download/nginx-1.10.2.tar.gz
tar vxzf nginx-1.10.2.tar.gz

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
tar vxzf pcre-8.39.tar.gz

git clone https://github.com/openresty/lua-nginx-module
git clone git://github.com/matsumoto-r/ngx_mruby.git
cd ngx_mruby
./configure --with-ngx-src-root=~/kuroneco/env/nginx/build/nginx-1.10.2
cp ~/kuroneco/env/nginx/mruby/build_config.rb ./
make build_mruby
make generate_gems_config

cd ../nginx-1.10.2
LUAJIT_INC=/usr/local/include/luajit-2.0 LUAJIT_LIB=/usr/local/lib/ ./configure --add-module=../lua-nginx-module --with-http_stub_status_module --with-http_ssl_module --add-module=../ngx_mruby --with-pcre=../pcre-8.39
make
sudo make install