加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 创业 > C语言 > 正文

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

发布时间:2020-12-15 00:17:29 所属栏目:C语言 来源:网络整理
导读:在最后执行安装的时候遇到了如下问题 yangxiangming@yangxiangming:~/Downloads/yaf-2.3.5$ sudo make installPassword:/bin/sh /Users/yangxiangming/Downloads/yaf-2.3.5/libtool --mode=install cp ./yaf.la /Users/yangxiangming/Downloads/yaf-2.3.5/mo

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

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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读