0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

nginxとmrubyのインストール

Last updated at Posted at 2017-04-15

備忘録。

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


0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?