Home >Backend Development >PHP Tutorial >mac - PHP安装扩展make install报错

mac - PHP安装扩展make install报错

WBOY
WBOYOriginal
2016-06-06 20:06:131358browse

1.问题如下图所示
mac - PHP安装扩展make install报错

2.尝试用sudo也报错:
mac - PHP安装扩展make install报错

3.操作系统是:
mac - PHP安装扩展make install报错

请教各位技术大大要如何解决?

回复内容:

1.问题如下图所示
mac - PHP安装扩展make install报错

2.尝试用sudo也报错:
mac - PHP安装扩展make install报错

3.操作系统是:
mac - PHP安装扩展make install报错

请教各位技术大大要如何解决?

关闭mac rootless 功能。

开机按住Command+R,进入恢复模式,打开terminal,键入:

csrutil disable

回车,重新启动即可。要重新恢复,只需将disable改为enable

osx 10.11中加入了rootless功能,顾名思义:给root用户更低的权限,该功能开启时即使是root用户或者sudo对于系统比较重要的目录也是没有操作权限的。

MacPHP的安装目录为root目录,写入时需要进行授权,使用sudo make install进行安装。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn