Last active
August 29, 2015 14:15
-
-
Save tk3/4e695d40fdf853b18463 to your computer and use it in GitHub Desktop.
ngx_mruby on CentOS 6.5 (x86_64)
This file contains hidden or 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
#!/bin/sh | |
# | |
# CentOS release 6.5 (Final) | |
# | |
sudo yum -y install readline-devel libyaml-devel openssl-devel | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
rbenv install 2.1.5 | |
rbenv global 2.1.5 | |
git clone https://github.com/redis/hiredis.git | |
cd hiredis && make && sudo make install | |
sudo yum -y install pcre-devel | |
sudo yum -y install zlib-devel | |
curl -O http://nginx.org/download/nginx-1.6.2.tar.gz | |
git clone https://github.com/matsumoto-r/ngx_mruby.git | |
tar zxf nginx-1.6.2.tar.gz | |
_nginx_src=`pwd`/nginx-1.6.2 | |
_nginx_mruby_src=`pwd`/ngx_mruby | |
cd ngx_mruby | |
git submodule init | |
git submodule update | |
NGINX_CONFIG_OPT_ENV='--prefix=/usr/local' NGINX_SRC_ENV=$_nginx_src sh build.sh | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment