在最后执行安装的时候遇到了如下问题
yangxiangming@yangxiangming:~/Downloads/yaf-2.3.5$ sudo make install
Password:
/bin/sh /Users/yangxiangming/Downloads/yaf-2.3.5/libtool --mode=install cp ./yaf.la /Users/yangxiangming/Downloads/yaf-2.3.5/modules
cp ./.libs/yaf.so /Users/yangxiangming/Downloads/yaf-2.3.5/modules/yaf.so
cp ./.libs/yaf.lai /Users/yangxiangming/Downloads/yaf-2.3.5/modules/yaf.la
----------------------------------------------------------------------
Libraries have been installed in:
/Users/yangxiangming/Downloads/yaf-2.3.5/modules
If you ever happen to want to link against installed libraries
in a given directory,LIBDIR,you must either use libtool,and
specify the full pathname of the library,or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information,such as the ld(1) and ld.so(8) manual pages.
Installing shared extensions: /usr/lib/PHP/extensions/no-debug-non-zts-20131226/
cp: /usr/lib/PHP/extensions/no-debug-non-zts-20131226/#INST@5628#: Operation not permitted
make: *** [install-modules] Error 1
错误信息提示是不允许操作,个人认为是权限不够,想起来之前也遇到过类似情况,于是查看自己的笔记,通过设置Mac的SIP安全设置
[-bash-3.2# csrutil disable
Successfully disabled System Integrity Protection. Please restart
the machine for the changes to take effect.
-bash-3.2#
再来执行sudo make install
还是不行,于是继续搜索错误原因,通过Google查找,执行
sudo spctl —master-disable
设置安全与隐私为任何来源,还是不行。崩溃啊!!!