search

Home  >  Q&A  >  body text

centos6.5 - 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

大家讲道理大家讲道理2773 days ago709

reply all(3)I'll reply

  • 迷茫

    迷茫2017-04-25 09:05:42

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

    reply
    0
  • 阿神

    阿神2017-04-25 09:05:42

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

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

    reply
    0
  • ringa_lee

    ringa_lee2017-04-25 09:05:42

    I guess you installed the wrong version

    reply
    0
  • Cancelreply