解决Mac OSX系统版本安装brew出错
来源:互联网 发布:编程机器人手机中文版 编辑:程序博客网 时间:2024/05/05 03:28
解决Mac OSX系统版本安装brew出错
上周更新了最新的Mac OSX操作系统10.11.x,但是安装brew命令的时候出现如下两种错误:
fatal: cannot unlink 'Library/Aliases/0install': Permission denied
error: unable to unlink old 'share/doc/homebrew/Acceptable-Formulae.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Bottles.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Brew-Test-Bot-For-Core-Contributors.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Brew-Test-Bot.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/C++-Standard-Libraries.md' (Permission denied)error: unable to create file share/doc/homebrew/Checksum_Deprecation.md (Permission denied)error: unable to unlink old 'share/doc/homebrew/Common-Issues-for-Core-Contributors.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Common-Issues.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Custom-GCC-and-cross-compilers.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/External-Commands.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/FAQ.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Formula-Cookbook.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Gems,-Eggs-and-Perl-Modules.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Homebrew-and-Python.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/How-to-Create-and-Maintain-a-Tap.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/How-to-build-software-outside-Homebrew-with-Homebrew-keg-only-dependencies.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Installation.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Interesting-Taps-&-Branches.md' (Permission denied)error: unable to create file share/doc/homebrew/Kickstarter-Supporters.md (Permission denied)error: unable to unlink old 'share/doc/homebrew/Maintainer-Guidelines.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Migrating-A-Formula-To-A-Tap.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/New-Maintainer-Checklist.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Python-for-Formula-Authors.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Querying-Brew.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/README.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Rename-A-Formula.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Tips-N'-Tricks.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Troubleshooting.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/Xcode.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/brew-tap.md' (Permission denied)error: unable to unlink old 'share/doc/homebrew/brew.1.html' (Permission denied)fatal: cannot create directory at 'share/doc/homebrew/images': Permission denied
网上找了半天找到了此种方法stackoverflow.此方法给我了一些提示,解决了OSX系统中brew的安装。
1.clone brew项目到本地
git clone https://github.com/Homebrew/brew
2.移动项目文件
在执行文件的移动之前,请保证要移动到的目录文件中的相同文件移除
1).通过本地项目可知brew的目录结构,而我们所使用的命令都是/usr/local/bin
文件中,因此将brew中的bin
目录下的命令brew
拷贝或者移动到/usr/local/bin
下:(我所使用的是移动)
//进入本地项目brew中cd brew //移动brew到系统文件中sudo mv bin/brew /usr/local/bin
2).移动Library
//移动Library库到/usr/localsudo Library /usr/local
3).移动share文件
//移动share库到/usr/localsudo mv share /usr/local
3.查看是否安装成功
使用brew
查看是否已经移动成功.如果有以下内容则代表成功。
到此为止,我们可以运行brew update
更新brew
,以及brew install
来安装我们所要使用的工具
ps:转载请注明出处
0 0
- 解决Mac OSX系统版本安装brew出错
- Mac OSX安装brew
- Mac 安装home brew出错
- Mac OSX使用brew安装旧版本phpunit的方法
- OSX 安装brew
- 在Mac OSX系统下安装Tomcat
- mac下virtualbox安装osx系统
- 【原】Mac下使用Brew安装node出错
- Mac OSX 10.11 安装cocoapods出错的解决办法
- 解决Mac OSX 10.10 Yosemite系统无法安装MyEclipse提示虚拟内存不足的问题
- MAC升级导致brew出错
- Mac osX下brew、node、npm的安装以及外接显示器发虚的配置
- Mac下通过 brew 安装不同版本的php
- Mac下用Brew安装(切换)的PHP版本
- Mac下通过 brew 安装不同版本的php
- Mac下通过brew安装指定版本的nodejs
- Mac下通过brew安装指定版本的nodejs
- Mac下用Brew安装(切换)的PHP版本
- Linux系统下ElasticSearch的环境搭建(含插件)
- 改版的 csdn 博客很漂亮
- finaldb 使用时 idField is null
- 城堡问题(简单DFS)
- jQuery学习
- 解决Mac OSX系统版本安装brew出错
- Hibernate中的Collection cache(集合缓存)
- hadoop搭建(2.6.4)
- 游戏服务器优化实践
- SpringBoot+Shiro+SpringSession的简单集成配置简要步骤
- JAVA/SERVLET 以UTF-8导出CSV文件时产生乱码的解决方法
- ora-01652无法通过128(在表空间temp中)扩展temp段
- 用链表摸拟栈
- 20160728笔记