mac安装redis遇到问题
Jun 06, 2016 pm 08:47 PM
在mac中进行lamp开发,需要安装redis,安装php的redis驱动出现问题。
我的是mac 10.9.1
安装驱动:
进入php-redis目录,执行phpize报错:
1.
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
2.
Cannot find autoconf
回复内容:
在mac中进行lamp开发,需要安装redis,安装php的redis驱动出现问题。
我的是mac 10.9.1
安装驱动:
进入php-redis目录,执行phpize报错:
1.
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
2.
Cannot find autoconf
问题已经解决
说说遇到的两个问题,具体操作google
1.使用phpize 报grep: /usr/include/php/main/php.h: No such file or directory
解决:可能是因为mac升级了,需要ln个xcode的链接
2.使用phpize 报Cannot find autoconf
解决:需要安装autoconf
请问你是使用何种方式安装,如果使用homebrew的话,基本安装的软件都可以在/usr/loca/里面找到,bin和sbin是可执行文件,etc是配置,Cellar是软件文件,等等。我用的nginx不晓得apache怎么玩。。
其他的我也不晓得了。但愿帮得上你。

熱門文章

熱門文章

熱門文章標籤

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

適用於 Ubuntu 和 Debian 的 PHP 8.4 安裝和升級指南

如何設定 Visual Studio Code (VS Code) 進行 PHP 開發
