Created
March 12, 2011 01:05
-
-
Save soldair/866890 to your computer and use it in GitHub Desktop.
install memcached php extension on openSuse
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
#assumed su | |
pecl install -B memcached | |
if [ -d "/usr/share/php5/PEAR/pear/download" ] | |
then | |
# openSuse 11.3 | |
cd /usr/share/php5/PEAR/pear/download | |
cd `ls | grep memcached` | |
else | |
# openSuse 11.2 | |
cd /usr/local/ | |
mkdir php | |
cd php | |
git clone git clone git://github.com/andreiz/php-memcached.git | |
cd php-memcached | |
fi | |
#all systems | |
wget http://launchpad.net/libmemcached/1.0/0.47/+download/libmemcached-0.47.tar.gz | |
tar -xvf libmemcached-0.47.tar.gz | |
cd libmemcached-0.47 | |
./configure | |
make | |
make install | |
#now make the extension | |
cd .. | |
phpize | |
./configure | |
make | |
make install | |
echo "extension=memcached.so" > /etc/php5/conf.d/memcached.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much!