zoukankan      html  css  js  c++  java
  • [ASK] brew install nginx

    ..........

    ..........

    Error: Permission denied - /usr/local/etc/openssl

    ..........

    ..........

    Cannot create directory /usr/local/etc/openssl: Permission denied

    created directory `/usr/local/Cellar/openssl/1.0.2h_1/bin'

    created directory `/usr/local/Cellar/openssl/1.0.2h_1/lib'

    created directory `/usr/local/Cellar/openssl/1.0.2h_1/lib/engines'

    created directory `/usr/local/Cellar/openssl/1.0.2h_1/lib/pkgconfig'

    created directory `/usr/local/Cellar/openssl/1.0.2h_1/include'

    created directory `/usr/local/Cellar/openssl/1.0.2h_1/include/openssl'

    make: *** [install_sw] Error 13

    READ THIS: https://git.io/brew-troubleshooting

    ..........

    --------------------------------------------------

    按照提示还就真去那个网址看了一下,也没有所得。

    猜测就是应为没有权限,所以准备用sudo试试,结果蹦出了如下这样的提示!!!

    Error: Cowardly refusing to 'sudo brew install'

    You can use brew with sudo, but only if the brew executable is owned by root.

    However, this is both not recommended and completely unsupported so do so at

    your own risk.

    唉,人家既然不建议咱们就别这么干了吧,忽然想到还有这么一招。

    sudo chown -R <username>:<group> /usr/local/etc/openssl/

    按照提示一步步操作,没有问题了。

     

     

     

  • 相关阅读:
    一个星期自动态的网站设计
    java特权制度设计篇
    mac默认截图、截图代码
    NSDateFormatter
    vlan 以及 Linux实现的IEEE 802.1Q VLAN
    gtk+blade+anjuta 的简单实例
    NetBSD是个开源到源码的系统
    创作gtk源码级vim帮助文档 tags
    linux 怎么使用一个c/c++库
    linux 终端控制-- 多彩输出 格式排版
  • 原文地址:https://www.cnblogs.com/wangnan1979/p/5549442.html
Copyright © 2011-2022 走看看