-
-
Save deanc/5011636 to your computer and use it in GitHub Desktop.
This file contains 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
# memcached requires libevent | |
cd /usr/local/src | |
curl -O https://github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz | |
tar -xvzf libevent-2.0.17-stable.tar.gz | |
cd libevent-2.0.17-stable* | |
./configure | |
make | |
sudo make install | |
# Compile memcached utility | |
cd /usr/local/src | |
curl -O http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz | |
tar -xvzf memcached-1.4.13.tar.gz | |
cd memcached-1.4.13* | |
./configure | |
make | |
sudo make install | |
# Create .bash_profile alias to start memcached as needed | |
alias m="memcached -d -m 24 -p 11211" | |
# Install autoconfig | |
cd /usr/local/src | |
curl -O http://gnu.mirrors.hoobly.com/gnu/autoconf/autoconf-2.69.tar.gz | |
tar xzf autoconf-2.68.tar.gz | |
cd autoconf-2.68 | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
# Compile and copy memcached.so module | |
cd /usr/local/src | |
phpize | |
./configure --enable-memcache | |
make | |
make install | |
# If using MAMP | |
# cp modules/memcache.so /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/ | |
# emacs /Applications/MAMP/bin/php/php5.3.6/conf/php.ini # add line: extension=memcache.so | |
# If using Apache2 | |
# sudo emacs /etc/php.ini # add line: extension=memcache.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment