First step: Install basic support
Curl-o http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
TAR-XZVF m4-1.4.13.tar.gz
CD m4-1.4.13
./configure–prefix=/usr/local
Make
sudo make install
Cd..
Curl-o http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
TAR-XZVF autoconf-2.65.tar.gz
CD autoconf-2.65
./configure–prefix=/usr/local
Make
sudo make install
For details see: http://blog.sina.com.cn/s/blog_586c261a0101jil1.html
Step Two: Install Redis
For details see: http://my.oschina.net/Twitter/blog/287544
Step Three: Expand
git clone Https://github.com/nicolasff/phpredis
CD Phpredis
Sudo/applications/xampp/xamppfiles/bin/phpize
sudo macosx_deployment_target=10.7 cflags= "-arch i386-arch x86_64-g-os-pipe-no-cpp-precomp" CCFLAGS= "-arch i386-arch X86_64-g-os-pipe "cxxflags="-arch i386-arch x86_64-g-os-pipe "ldflags="-arch i386-arch x86_64-bind_at_load "./co Nfigure--enable-redis--with-php-config=/applications/xampp/xamppfiles/bin/php-config
sudo make && sudo make install
Then modify the php.ini (add: Extension=redis.so,xampp under the/etc/php.ini), restart the XAMPP service will be ready.
This article is from the "Flail Blog" blog, please be sure to keep this source http://jhomephper.blog.51cto.com/8558055/1692761
Redis and Redis extension-----xampp installed under Mac