Cowardly refusing to `sudo brew update` or failure
2015-11-30 16:31
453 查看
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`
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`
brew
update failure while executing git checkout
$ cd `brew --prefix` $ git remote add origin https://github.com/Homebrew/homebrew.git $ git fetch origin $ git reset --hard origin/master $ brew update Already up-to-date.
相关文章推荐
- 出现( linker command failed with exit code 1)错误总结汇总
- 分治法求最近点对
- IBM AIX 系统Lpar学习以及资源调整
- paintEvent()重绘事件
- 警告:Block的Retain Cycle的解决方法
- IPC-Binder连接池
- 【索引】2015 Multi-University Training Contest
- HTML5 Canvas渐进填充与透明(摘自 http://blog.csdn.net/jia20003/article/details/9251893)
- ping失败,如果在路由表main内没有entry
- Idea创建main函数
- Daily Scrum - 11/30
- 初探glusterfs-处理脑裂(split-brain)状态
- Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Access denied
- IMAGE INPAINTING
- 光纤网卡、HBA卡和RAID卡的区别
- 社交媒体中的谣言检测(A11, AAAI2015)
- Container With Most Water
- airodump-ng wlan0mon doesn't work
- RAID基本知识
- Contains Duplicate II