douduan7295 2013-06-06 19:33
浏览 426
已采纳

使用igbinary安装php redis,找不到头文件

I'm trying to install the phpredis extension, but no luck.

After running the command ./configure --enable-redis-igbinary, I've received the following error:

checking for igbinary includes... configure: error: Cannot find igbinary.h

igbinary was installed using PECL, but looks like the header files are not being found.

  • 写回答

1条回答 默认 最新

  • dounuo9921 2013-06-06 19:33
    关注

    This problem is probably caused because PECL is installing the header files to a location different from the one that is used during the installation of phpredis. You can confirm this by looking at the console messages.

    $> sudo pecl install igbinary
    

    Build process completed successfully Installing
    '/usr/lib/php/extensions/no-debug-non-zts-20090626/igbinary.so'
    Installing '/usr/include/php/ext/igbinary/igbinary.h'

    $> ./configure --enable-redis-igbinary
    

    checking for PHP installed headers prefix... /usr/local/include/php
    checking if debug is enabled... no checking if zts is enabled... no
    checking for re2c... re2c checking for re2c version... 0.13.5 (ok)
    checking for gawk... gawk checking whether to enable redis support...
    yes, shared checking whether to enable sessions... yes checking
    whether to enable igbinary serializer support... yes checking for
    igbinary includes... configure: error: Cannot find igbinary.h

    Just move the igbinary folder to the correct location:

    $> cp /usr/include/php/ext/igbinary /usr/local/include/php/ext/igbinary -fr
    

    And it should correctly find the igbinary header file:

    checking whether to enable igbinary serializer support... yes
    checking for igbinary includes... /usr/local/include/php
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog