Browse Source

Update install.sh

pull/5/head
loveshell 12 years ago
parent
commit
bd0d9a1a19
  1. 10
      install.sh

10
install.sh

@ -1,6 +1,6 @@
mkdir -p /data/src mkdir -p /data/src
cd /data/src cd /data/src
if [ ! -x "LuaJIT-2.0.0.tar.gz"]; then if [ ! -x "LuaJIT-2.0.0.tar.gz" ]; then
wget http://luajit.org/download/LuaJIT-2.0.0.tar.gz wget http://luajit.org/download/LuaJIT-2.0.0.tar.gz
fi fi
tar zxvf LuaJIT-2.0.0.tar.gz tar zxvf LuaJIT-2.0.0.tar.gz
@ -9,16 +9,16 @@ make
make install PREFIX=/usr/local/lj2 make install PREFIX=/usr/local/lj2
ln -s /usr/local/lj2/lib/libluajit-5.1.so.2 /lib64/ ln -s /usr/local/lj2/lib/libluajit-5.1.so.2 /lib64/
cd /data/src cd /data/src
if [ ! -x "v0.2.17rc2.zip"]; then if [ ! -x "v0.2.17rc2.zip" ]; then
wget https://github.com/simpl/ngx_devel_kit/archive/v0.2.17rc2.zip wget https://github.com/simpl/ngx_devel_kit/archive/v0.2.17rc2.zip
fi fi
unzip v0.2.17rc2 unzip v0.2.17rc2
if [ ! -x "v0.7.4.zip"]; then if [ ! -x "v0.7.4.zip" ]; then
wget https://github.com/chaoslawful/lua-nginx-module/archive/v0.7.4.zip wget https://github.com/chaoslawful/lua-nginx-module/archive/v0.7.4.zip
fi fi
unzip v0.7.4 unzip v0.7.4
cd /data/src cd /data/src
if [ ! -x "pcre-8.10.tar.gz"]; then if [ ! -x "pcre-8.10.tar.gz" ]; then
wget http://blog.s135.com/soft/linux/nginx_php/pcre/pcre-8.10.tar.gz wget http://blog.s135.com/soft/linux/nginx_php/pcre/pcre-8.10.tar.gz
fi fi
tar zxvf pcre-8.10.tar.gz tar zxvf pcre-8.10.tar.gz
@ -26,7 +26,7 @@ cd pcre-8.10/
./configure ./configure
make && make install make && make install
cd .. cd ..
if [ ! -x "nginx-1.2.4.tar.gz"]; then if [ ! -x "nginx-1.2.4.tar.gz" ]; then
wget 'http://nginx.org/download/nginx-1.2.4.tar.gz' wget 'http://nginx.org/download/nginx-1.2.4.tar.gz'
fi fi
tar -xzvf nginx-1.2.4.tar.gz tar -xzvf nginx-1.2.4.tar.gz

Loading…
Cancel
Save