Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac下安装时 fatal error: 'config.h' file not found #15

Open
CancelZ opened this issue Oct 22, 2016 · 1 comment
Open

Mac下安装时 fatal error: 'config.h' file not found #15

CancelZ opened this issue Oct 22, 2016 · 1 comment

Comments

@CancelZ
Copy link

CancelZ commented Oct 22, 2016

在编译安装时,执行make命令,得到了一条错误:
fatal error: 'config.h' file not found
请问怎么解决?
系统是最近更新的OSX 10.12

@CancelZ
Copy link
Author

CancelZ commented Oct 22, 2016

又是稀里糊涂解决了,唉
从新phpize了一下然后就好了,也不知道是期间的哪些操作影响了结果,期间我编译安装了令我一个扩展SeasLog,只是想试一下别的插件可以不可以,安装过程比较顺利。

Build complete.
Don't forget to run 'make test'.

想对和我一样的新手强调一点,用phpize编译和./configure时要注意自己的php路径,我的电脑上就有很多php,确定路径后,如果php不是系统默认安装的,在./configure后面还需要加上参数
$ ./configure --with-php-config=/usr/local/php5/bin/php-config
如果不加参数,默认会用/usr/bin/php下的php的配置编译,这应该就是安装过程中出现各种错误的原因-.-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant