2013-06-06 4 views
2

Я пытаюсь установить расширение phpredis, но не повезло.Установка php redis с igbinary, файл заголовка не найден

После запуска команды ./configure --enable-redis-igbinary, я получил следующее сообщение об ошибке:

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

igbinary был установлен с помощью PECL, но выглядит как файлы заголовки не найдены.

ответ

7

Эта проблема, вероятно, вызвана тем, что PECL устанавливает файлы заголовков в другое место, отличное от того, которое используется во время установки phpredis. Вы можете подтвердить это, посмотрев сообщения консоли.

$> 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

Просто переместите igbinary папку в нужное место:

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

И он должен правильно найти igbinary заголовочный файл:

checking whether to enable igbinary serializer support... yes 
checking for igbinary includes... /usr/local/include/php 

 Смежные вопросы

  • Нет связанных вопросов^_^