首页 > centos 6.5安装phpredis时提示make: *** [redis.la] Error 1

centos 6.5安装phpredis时提示make: *** [redis.la] Error 1

错误提示
不太了解linux安装redis,请各位指导一下,我在ubuntu下能正常配置成功,到了centos就出现这问题了
/usr/bin/ld: Warning: size of symbol `arginfo_scan' changed from 160 in .libs/redis.o to 200 in .libs/redis_cluster.o
collect2: ld returned 1 exit status
make: * [redis.la] Error 1


./configure 加上--with-php-config 就行了

./configure --with-php-config=/home/php/bin/php-config


可通过修改redis_cluester.c ,注释掉了两个重复的部分即可。

具体请参考这篇文章 多php环境下phpredis扩展安装

  40 

  41 /* Argument info for HSCAN, SSCAN, HSCAN */

  42 /*ZEND_BEGIN_ARG_INFO_EX(arginfo_kscan, 0, 0, 2)

  43     ZEND_ARG_INFO(0, str_key)

  44     ZEND_ARG_INFO(1, i_iterator)

  45     ZEND_ARG_INFO(0, str_pattern)

  46     ZEND_ARG_INFO(0, i_count)

  47 ZEND_END_ARG_INFO();

  48 */

  49 

  50 /* Argument infor for SCAN */

  51 /*

  52 ZEND_BEGIN_ARG_INFO_EX(arginfo_scan, 0, 0, 2)

  53     ZEND_ARG_INFO(1, i_iterator)

  54     ZEND_ARG_INFO(0, str_node)

  55     ZEND_ARG_INFO(0, str_pattern)

  56     ZEND_ARG_INFO(0, i_count)

  57 ZEND_END_ARG_INFO();

  58 */
  
  
【热门文章】
【热门文章】