Heim  >  Artikel  >  Backend-Entwicklung  >  macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

WBOY
WBOYOriginal
2016-08-10 09:07:161015Durchsuche

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

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

4.资料图
php版本

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

phpize

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

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改语句执行不成功。

回复内容:

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

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

4.资料图
php版本

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

phpize

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

macos - mac环境中安装phpredis-master时,安装到步骤到在查看扩展安装情况时出现了模块与php版本冲突的问题

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改语句执行不成功。

这个很明显就是你的phpize版本与php版本不一致造成的,解决方法就是找到与php版本一致的phpize以及php-config,看样子你并没有去找过你机器里的这两个文件。

PS. 网上的方案是给你思路,每个人的机器环境各不相同,他们提供的文件路径并不适用于你的机器,如果你纯粹去抄解决方案,并不确保你能解决问题。

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