本文 32193 pv

3

mac系统升级到10.9(mavericks)时安装php扩展问题解决

© kekehu / 技术资源 / 2013.10.25 / 18:03 / 32193PV

在装mcrypt插件时报错,提示:mcrypt fatal error: 'php.h' file not found,
然后又仔细操作了一次在输完phpize回车时就已经开始出错了,出错信息如下:
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
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
解决办法:
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include /usr/include

本文有 3 篇评论

  1. @ tang Email 说 :
    2015.07.08 09:17
    avatar

    提示:ln: /usr/include/include: File exists

  2. @ lalla Email 说 :
    2013.12.24 14:28
    avatar

    thanks

  3. @ 匿名 Email 说 :
    2013.12.10 16:16
    avatar

    非常感谢,安你的方法搞定了。

1/1 第一页 1 最后页

发表你的见解

打开HTML 打开UBB 打开表情 隐藏 记住我
emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot
emotemotemotemotemot