我使用mac端口安装了php 5.4。 然后我git克隆phpredis存储库( https://github.com/nicolasff/phpredis )。
然后,我执行这些命令:
phpize54 ./configure make && make install
问题是巨大的图书馆得到编译与PHP 5.3并安装在这个目录中: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/
我需要它被编译使用PHP 5.4并安装在这个目录中: /opt/local/lib/php54/extensions/no-debug-non-zts-20100525/
任何人都知道我在做什么错了? 在此先感谢你们!
编辑:
此外,当我写make test ,我得到这个错误:
PHP Warning: PHP Startup: redis: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20100525