Skip to content

Instantly share code, notes, and snippets.

@baires
Last active August 29, 2015 14:05
Show Gist options
  • Save baires/aada4c0a01f2d79cdea5 to your computer and use it in GitHub Desktop.
Save baires/aada4c0a01f2d79cdea5 to your computer and use it in GitHub Desktop.
Memcaced
1) Install RVM
\curl -sSL https://get.rvm.io | bash -s stable
2) Get some rubies :)
rvm install 1.9.3 --with-gcc=clang
3) Set ruby version as default
rvm use ruby-1.9.1-pXXX -default
4) Get Homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
5) Check your environment
brew doctor
(Check for errors)
6) Install Mammp missing dependencies
brew install memcached
brew install libmemcached
(Check for errors).
If got unnliked libmemcached, try:
brew unlink libmemcached
brew link --overwrite --force libmemcached
7) Your are done. Restart apache and try again.
8) If you are using Mamp or Mamp pro: go to https://github.com/majksner/php-memcached-mamp
A) http://localhost/MAMP/phpinfo.php Check your php version
B) Copy memcached.so from the appropriate subdirectory of this repo to
/Applications/MAMP/bin/php/php5.x.x/lib/php/extensions/no-debug-non-zts-200xxxxx (Channge 5.x.x to your PHP version)
C) Add extension="memcached.so" to the end of php.ini
(Open MAMP click on File → Edit Template → PHP → PHP 5.x.x php.ini),
for non-pro users edit /Applications/MAMP/bin/php/php5.x.x/conf/php.ini (Channge 5.x.x to your PHP version)
D) Restart MAMP.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment