修复humebrew 安装软件 Cowardly refusing to `sudo brew link` 错误
来源:互联网 发布:access数据库 绿色版 编辑:程序博客网 时间:2024/06/05 14:27
It is a common error that users generally encounter when they try to execute a brew command as sudo and shown below is an example of how the error looks like:
Debjit-Sahas-Mac-mini:mcrypt debjit$ sudo brew link mcrypt
Password:
Sorry, try again.
Password:
Error: Cowardly refusing to `sudo brew link`
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.
UPDATE: if you are facing permission issues with HomeBrew on Mac OS X El Capitan, then you should read this.
There is a simple fix associated with this. Just go ahead and execute the following four commands in that order:
First find out what is the current ownership of the installed package of brew (you will need this info in the last step)
ls -al `which brew`
Change the user and group of brew to root and wheel respectively:
sudo chown root:wheel `which brew`
Now execute your brew command as root, for eg. sudo brew link mcrypt. Lastly, revert back the ownership of brew to what you had found out in step 1 above
sudo chown : `chown brew`
- 修复humebrew 安装软件 Cowardly refusing to `sudo brew link` 错误
- Cowardly refusing to `sudo brew install`
- brew install 报错Cowardly refusing to `sudo brew install
- 使用brew安装hexo报错--- Cowardly refusing to `sudo brew install`
- Cowardly refusing to `sudo brew update` or failure
- MAC下Cowardly refusing to 'sudo brew install解决方案
- 关于MAC下安装报错Error: Cowardly refusing to `sudo brew install'
- Mac 下使用brew install 报错: Error: Cowardly refusing to `sudo brew install'
- brew link conf 错误
- tar 命令出现 Cowardly refusing to create an empty archive 问题详解
- 使用brew安装软件
- [mac]brew安装软件
- 使用brew安装软件
- 使用brew安装软件
- Ubuntu安装软件sudo apt-get install时出现错误
- sudo 安装 常见错误
- centos安装FreeRadius。错误Refusing to start with libssl version OpenSSL 1.0.1e-fips 11 Feb 2013 解决办法
- cannot find the flags to link with Boost date_time 错误修复
- iOS开发UI篇—Quartz2D使用(矩阵操作)
- 【NOIP2013】【提高组】【Day1】【解题报告】
- 前后端分离的思考与实践(四)
- listView 加载不同布局item
- 设计模式——从单例模式开始
- 修复humebrew 安装软件 Cowardly refusing to `sudo brew link` 错误
- ORACLE 11G新特性
- HID 读写report ID注意事项
- Thinkphp3.2使用scws中文分词 提取关键词
- PHP垃圾回收机制
- MAC 安装 openvc
- Linux防火墙指定端口范围
- 分时操作系统和多道程序操作系统的区别
- week8---10月27日 DIV布局定位(二)