Heim  >  Artikel  >  Backend-Entwicklung  >  mac环境中安装phpredis

mac环境中安装phpredis

WBOY
WBOYOriginal
2016-08-10 08:48:51849Durchsuche

1.问题
安装phpredis-master时,在php -m | grep redis时出现了模块与php版本冲突的问题。redis模块安装到php中失败
2.代码
按照该文章的来进行操作
http://blog.csdn.net/chong223...
3.错误

mac环境中安装phpredis

4.资料图
php版本

mac环境中安装phpredis

phpize

mac环境中安装phpredis

mac环境中安装phpredis

mac环境中安装phpredis

5.尝试

(1)执行编译源码包执行phpize的版本与当前php环境中phpize的版本不一致造成的,解决办法:
http://www.linuxde.net/2013/0...
尝试失败,还是出现同样的问题。
(2)自己重新上github下载安装包下来进行安装还是出现同样的版本的问题。
(3)安装网上的文章http://my.oschina.net/Twitter...
进行操作继续尝试。出现问题./configure --with-php-config=/usr/bin/php-config改语句执行不成功。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn