mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
968 B
28 lines
968 B
#!/bin/bash
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
|
export PATH
|
|
|
|
curPath=`pwd`
|
|
rootPath=$(dirname "$curPath")
|
|
rootPath=$(dirname "$rootPath")
|
|
rootPath=$(dirname "$rootPath")
|
|
rootPath=$(dirname "$rootPath")
|
|
|
|
# echo $rootPath
|
|
|
|
# cd /www/server/mdserver-web/plugins/php/lib && /bin/bash libmemcached.sh
|
|
|
|
SERVER_ROOT=$rootPath/lib
|
|
SOURCE_ROOT=$rootPath/source/lib
|
|
|
|
#----------------------------- libmemcached start -------------------------#
|
|
if [ ! -d ${SERVER_ROOT}/libmemcached ];then
|
|
cd ${SOURCE_ROOT}
|
|
if [ ! -f ${SOURCE_ROOT}/libmemcached-1.0.4.tar.gz ];then
|
|
wget -O libmemcached-1.0.4.tar.gz https://launchpad.net/libmemcached/1.0/1.0.4/+download/libmemcached-1.0.4.tar.gz -T 20
|
|
fi
|
|
tar -zxf libmemcached-1.0.4.tar.gz
|
|
cd libmemcached-1.0.4
|
|
./configure --prefix=${SERVER_ROOT}/libmemcached -with-memcached && make && make install
|
|
fi
|
|
#----------------------------- libmemcached end -------------------------# |