centos6.5 - centos 6.5安装phpredis时提示make: *** [redis.la] Error 1
大家讲道理
大家讲道理 2017-04-25 09:03:42
0
3
674

错误提示
不太了解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

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
迷茫

You can modify redis_cluester.c and comment out the two repeated parts.

Please refer to this article for details about phpredis extension installation in multiple PHP environments

  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 */
  
  
阿神

./configure just add --with-php-config

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

左手右手慢动作

I guess you installed the wrong version

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!