码迷,mamicode.com
首页 > Web开发 > 详细

升级mac中的系统之后,给PHP安装扩展常出现问题

时间:2015-01-09 12:11:06      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:

(1)在装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

 

(2)执行./confiure是报错

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

 

升级mac中的系统之后,给PHP安装扩展常出现问题

标签:

原文地址:http://www.cnblogs.com/wudan7/p/4212812.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!