MacOS Sierra 10.12.1版本 编译安装yaf-2.3.5

在最后执行安装的时候遇到了如下问题

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

设置安全与隐私为任何来源,还是不行。崩溃啊!!!

相关文章

显卡天梯图2024最新版,显卡是电脑进行图形处理的重要设备,...
初始化电脑时出现问题怎么办,可以使用win系统的安装介质,连...
todesk远程开机怎么设置,两台电脑要在同一局域网内,然后需...
油猴谷歌插件怎么安装,可以通过谷歌应用商店进行安装,需要...
虚拟内存这个名词想必很多人都听说过,我们在使用电脑的时候...