Skip to content

Instantly share code, notes, and snippets.

@soldair
Created March 12, 2011 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soldair/866890 to your computer and use it in GitHub Desktop.
Save soldair/866890 to your computer and use it in GitHub Desktop.
install memcached php extension on openSuse
#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
@asmisha
Copy link

asmisha commented Mar 6, 2015

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment