问题一:

执行执行 phpize 报错:

1 grep: /usr/include/php/main/php.h: No such file or directory
2 grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
3 grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
4 Configuring for:
5 PHP Api Version:
6 Zend Module Api No:
7 Zend Extension Api No:

解决办法:

 sudo ln -s/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include /usr/include 

PS:经测试,适用于 Yosemite (10.10) Xcode 6.0.1 (6A317)

问题二:

如果执行 phpize 提示如下错误:

1 Cannot find autoconf. Please check your autoconf installation
2 and the $PHP_AUTOCONF environment variable.

解决办法:

先安装Homebrew:

1 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" #最新修改

然后安装 autoconf :

1 brew install autoconf

转载地址:http://my.oschina.net/Twitter/blog/287543

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2021-08-24
  • 2022-12-23
  • 2021-12-26
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2021-04-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案