10.11 下用 homebrew安装失败 安装 mpv 失败了怎么解决

1.安装brew
http://brew.sh/index_zh-cn.html
粘贴命令语句到terminal
2.出错信息
error: unable to unlink old 'Library/Aliases/0mq' (Permission denied)
error: unable to unlink old 'Library/Aliases/4store' (Permission denied)
error: unable to unlink old 'Library/Aliases/Secret Rabbit Code' (Permission denied)
error: unable to create symlink Library/Aliases/actor-framework (Permission denied)
error: unable to create symlink Library/Aliases/adwaita-icon-theme (Permission denied)
error: unable to unlink old 'Library/Aliases/ag' (Permission denied)
error: unable to unlink old 'Library/Aliases/alut' (Permission denied)
error: unable to unlink old 'Library/Aliases/android' (Permission denied)
error: unable to unlink old 'Library/Aliases/apache-activemq' (Permission denied)
error: unable to unlink old 'Library/Aliases/apache-fop' (Permission denied)
error: unable to create symlink Library/Aliases/atlassian-cli (Permission denied)
error: unable to unlink old 'Library/Aliases/aws-as' (Permission denied)
error: unable to unlink old 'Library/Aliases/aws-mon' (Permission denied)
error: unable to create symlink Library/Aliases/awsebcli (Permission denied)
error: unable to unlink old 'Library/Aliases/beanstalkd' (Permission denied)
error: unable to unlink old 'Library/Aliases/bjam' (Permission denied)
error: unable to create symlink Library/Aliases/blazegraph (Permission denied)
error: unable to unlink old 'Library/Aliases/boehmgc' (Permission denied)
error: unable to unlink old 'Library/Aliases/boost-jam' (Permission denied)
error: unable to create symlink Library/Aliases/boot2docker-cli (Permission denied)
error: unable to unlink old 'Library/Aliases/bzr' (Permission denied)
error: unable to create symlink Library/Aliases/caf (Permission denied)
error: unable to create symlink Library/Aliases/cmark (Permission denied)
error: unable to unlink old 'Library/Aliases/cowthink' (Permission denied)
error: unable to unlink old 'Library/Aliases/cpanm' (Permission denied)
error: unable to unlink old 'Library/Aliases/csvfix' (Permission denied)
error: unable to unlink old 'Library/Aliases/ctags-exuberant' (Permission denied)
error: unable to unlink old 'Library/Aliases/db' (Permission denied)
error: unable to unlink old 'Library/Aliases/dbus' (Permission denied)
error: unable to unlink old 'Library/Aliases/dejagnu' (Permission denied)
error: unable to create symlink Library/Aliases/docker-compose (Permission denied)
error: unable to unlink old 'Library/Aliases/eyeD3' (Permission denied)
error: unable to unlink old 'Library/Aliases/fastcgi' (Permission denied)
error: unable to unlink old 'Library/Aliases/fishfish' (Permission denied)
error: unable to unlink old 'Library/Aliases/fluidsynth' (Permission denied)
error: unable to unlink old 'Library/Aliases/gearmand' (Permission denied)
error: unable to unlink old 'Library/Aliases/git-tig' (Permission denied)
error: unable to unlink old 'Library/Aliases/gnu-scientific-library' (Permission denied)
error: unable to unlink old 'Library/Aliases/google-go' (Permission denied)
error: unable to unlink old 'Library/Aliases/gperftools' (Permission denied)
error: unable to unlink old 'Library/Aliases/gpg' (Permission denied)
error: unable to unlink old 'Library/Aliases/gpg2' (Permission denied)
error: unable to unlink old 'Library/Aliases/gs' (Permission denied)
error: unable to unlink old 'Library/Aliases/gtk' (Permission denied)
error: unable to unlink old 'Library/Aliases/gtypist' (Permission denied)
error: unable to unlink old 'Library/Aliases/hashdeep' (Permission denied)
error: unable to unlink old 'Library/Aliases/heroku' (Permission denied)
error: unable to unlink old 'Library/Aliases/hg' (Permission denied)
error: unable to unlink old 'Library/Aliases/htop' (Permission denied)
error: unable to unlink old 'Library/Aliases/hudson' (Permission denied)
error: unable to unlink old 'Library/Aliases/ipsum' (Permission denied)
error: unable to unlink old 'Library/Aliases/jocr' (Permission denied)
error: unable to create symlink Library/Aliases/kotlin (Permission denied)
error: unable to unlink old 'Library/Aliases/lcms' (Permission denied)
error: unable to unlink old 'Library/Aliases/lcms2' (Permission denied)
error: unable to unlink old 'Library/Aliases/leg' (Permission denied)
error: unable to unlink old 'Library/Aliases/libcryptopp' (Permission denied)
error: unable to unlink old 'Library/Aliases/libgd' (Permission denied)
error: unable to unlink old 'Library/Aliases/libgeoip' (Permission denied)
error: unable to create symlink Library/Aliases/libgme (Permission denied)
error: unable to unlink old 'Library/Aliases/libjpeg' (Permission denied)
error: unable to unlink old 'Library/Aliases/libjpeg-turbo' (Permission denied)
error: unable to unlink old 'Library/Aliases/libjpg' (Permission denied)
error: unable to unlink old 'Library/Aliases/liblabjackusb' (Permission denied)
error: unable to unlink old 'Library/Aliases/libmad' (Permission denied)
error: unable to unlink old 'Library/Aliases/libmcrypt' (Permission denied)
error: unable to unlink old 'Library/Aliases/libnettle' (Permission denied)
error: unable to unlink old 'Library/Aliases/liboggz' (Permission denied)
error: unable to unlink old 'Library/Aliases/libqrencode' (Permission denied)
error: unable to unlink old 'Library/Aliases/libtag' (Permission denied)
error: unable to unlink old 'Library/Aliases/libtasn' (Permission denied)
error: unable to unlink old 'Library/Aliases/libtcnative' (Permission denied)
error: unable to unlink old 'Library/Aliases/littlecms' (Permission denied)
error: unable to create symlink Library/Aliases/mbedtls (Permission denied)
error: unable to unlink old 'Library/Aliases/mc' (Permission denied)
error: unable to create symlink Library/Aliases/mdocml (Permission denied)
error: unable to unlink old 'Library/Aliases/mediainfo' (Permission denied)
error: unable to unlink old 'Library/Aliases/mongo' (Permission denied)
error: unable to unlink old 'Library/Aliases/mosh' (Permission denied)
error: unable to unlink old 'Library/Aliases/mp4box' (Permission denied)
error: unable to unlink old 'Library/Aliases/mpich' (Permission denied)
error: unable to unlink old 'Library/Aliases/myrepos' (Permission denied)
error: unable to create symlink Library/Aliases/nim (Permission denied)
error: unable to unlink old 'Library/Aliases/node.js' (Permission denied)
error: unable to unlink old 'Library/Aliases/nodejs' (Permission denied)
error: unable to unlink old 'Library/Aliases/npm' (Permission denied)
error: unable to unlink old 'Library/Aliases/nsis' (Permission denied)
error: unable to unlink old 'Library/Aliases/o-caml' (Permission denied)
error: unable to unlink old 'Library/Aliases/ocaml' (Permission denied)
error: unable to unlink old 'Library/Aliases/ocio' (Permission denied)
error: unable to unlink old 'Library/Aliases/offlineimap' (Permission denied)
error: unable to unlink old 'Library/Aliases/ooc' (Permission denied)
error: unable to unlink old 'Library/Aliases/openmpi' (Permission denied)
error: unable to unlink old 'Library/Aliases/openocd' (Permission denied)
error: unable to create symlink Library/Aliases/openscenegraph (Permission denied)
error: unable to create symlink Library/Aliases/pcre1 (Permission denied)
error: unable to unlink old 'Library/Aliases/pgrep' (Permission denied)
error: unable to unlink old 'Library/Aliases/pipeviewer' (Permission denied)
error: unable to unlink old 'Library/Aliases/pkgconfig' (Permission denied)
error: unable to unlink old 'Library/Aliases/pkill' (Permission denied)
error: unable to unlink old 'Library/Aliases/pocketsphinx' (Permission denied)
error: unable to unlink old 'Library/Aliases/postgres' (Permission denied)
error: unable to create symlink Library/Aliases/pt (Permission denied)
error: unable to unlink old 'Library/Aliases/qt4' (Permission denied)
error: unable to create symlink Library/Aliases/rtl-sdr (Permission denied)
error: unable to unlink old 'Library/Aliases/shell-fm' (Permission denied)
error: unable to unlink old 'Library/Aliases/slang' (Permission denied)
error: unable to create symlink Library/Aliases/sonarqube (Permission denied)
error: unable to create symlink Library/Aliases/speedtest-cli (Permission denied)
error: unable to unlink old 'Library/Aliases/sphinxbase' (Permission denied)
error: unable to unlink old 'Library/Aliases/sqlite3' (Permission denied)
error: unable to unlink old 'Library/Aliases/stax-sdk' (Permission denied)
error: unable to unlink old 'Library/Aliases/style' (Permission denied)
error: unable to unlink old 'Library/Aliases/svn' (Permission denied)
error: unable to unlink old 'Library/Aliases/tinyfugue' (Permission denied)
error: unable to unlink old 'Library/Aliases/twemproxy' (Permission denied)
error: unable to unlink old 'Library/Aliases/twolame' (Permission denied)
error: unable to unlink old 'Library/Aliases/unix2dos' (Permission denied)
error: unable to unlink old 'Library/Aliases/usb-multiplex-daemon' (Permission denied)
error: unable to unlink old 'Library/Aliases/vid.stab' (Permission denied)
error: unable to create symlink Library/Aliases/wolfssl (Permission denied)
error: unable to unlink old 'Library/Aliases/wxwidgets' (Permission denied)
error: unable to unlink old 'Library/Aliases/xmlsec1' (Permission denied)
error: unable to create symlink Library/Aliases/yubico-pam (Permission denied)
error: unable to create symlink Library/Aliases/yubikey-personalization (Permission denied)
error: unable to unlink old 'Library/Aliases/zmq' (Permission denied)
error: unable to unlink old 'Library/Contributions/brew_bash_completion.sh' (Permission denied)
error: unable to unlink old 'Library/Contributions/brew_zsh_completion.zsh' (Permission denied)
error: unable to unlink old 'Library/Contributions/example-formula.rb' (Permission denied)
error: unable to unlink old 'Library/ENV/3.2.6' (Permission denied)
error: unable to unlink old 'Library/ENV/4.2' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/ant' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/apr-1-config' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/bsdmake' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/c++' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/c89' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/c99' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/cc' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/clang' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/clang++' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/cpp' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/g++' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/g++-4.2' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/g++-4.3' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/g++-4.4' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/g++-4.5' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/g++-4.6' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/g++-4.7' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/g++-4.8' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/g++-4.9' (Permission denied)
error: unable to create symlink Library/ENV/4.3/g++-5 (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gcc' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gcc-4.2' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gcc-4.3' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gcc-4.4' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gcc-4.5' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gcc-4.6' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gcc-4.7' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gcc-4.8' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gcc-4.9' (Permission denied)
error: unable to create symlink Library/ENV/4.3/gcc-5 (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/git' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/gmake' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/i686-apple-darwin11-llvm-g++-4.2' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/i686-apple-darwin11-llvm-gcc-4.2' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/ld' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/llvm-g++' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/llvm-g++-4.2' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/llvm-gcc' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/llvm-gcc-4.2' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/make' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/mig' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/pod2man' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/sed' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/svn' (Permission denied)
error: unable to unlink old 'Library/ENV/4.3/xcrun' (Permission denied)
fatal: cannot create directory at 'Library/ENV/include': Permission denied
Failed during: git reset --hard origin/master
3.解决方法
As per&&I ran the following command:
sudo chown -R `whoami` /usr/local
And then re-ran the homebrew command:
$ /usr/bin/ruby -e &$(curl -fsSL /gist/323731)&
==& This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
Press enter to continue
==& /usr/bin/sudo /bin/chmod o+w /usr/local
==& Downloading and Installing Homebrew...
==& /usr/bin/sudo /bin/chmod o-w /usr/local
==& Installation successful!
Now type: brew help
I hope this helps someone in future!
4.参考资料
/questions/21754/installing-homebrew-on-lion
本文已收录于以下专栏:
相关文章推荐
apxs:Error /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/...
最近换了新的电脑,于是各种环境各种配,遇到了不少奇葩问题,这篇博客对一些比较棘手的问题进行整理(每个问题几乎都耽误了我3个小时)。。。1.MAC 安装mysql 5.7.13首先是mysql 问题,我...
Xcode 7's New Linker Rules
The other day I received a new error from Xcode 7. I was building an i...
笔者刚转入osx开发,准备配置一个opencv,却教程都参差不齐,经过自己的测试安装,在这里进行下总结,希望能帮助到需要的朋友。
首先笔者的系统环境是osx 10.11 el capitan, xc...
caffe mac OSX 10.11 EI Caption 安装过程最近在学习CNN 的时候接触到这个caffe 框架,安装还是比较复杂的,装了整整一个下午,mark 下以备不时之需。前期准备:
说一下电脑主要配置:
英特尔 Core i3-2310M (双核)
联想 KL6 (英特尔 HM65 (Cougar Point) [B3])
首先,必须先卸载之前的版本
1. 分别执行下面命令卸载cocoapods和xcodeproj,如果你的机器上面有多个版本,选择All versions卸载 
9、启动 VMware 虚拟机并安装 Mac OS X,启动虚拟机后在苹果 Logo 约几分钟后
10、此刻竟如安装界面,选择以“以简体中文作为主要语言”选项,单击下一步按钮(中央指向右边的箭头) ...
针对开发者的osX环境搭建新买的mac趁着兴奋劲使劲折腾1. 首先 brew 的安装之前用惯了Ubuntu,甚是觉得有apt-get这种东西来帮忙管理依赖真是爽爆了,拿到mac第一件事便是搜索有没有类...
OS X更新到10.11后,CocoaPods的安装和以前有了点不同。
以前安装cocoapods的时候用的是这句:
$ sudo gem install cocoapods
现在要改成这句:...
他的最新文章
讲师:王哲涵
讲师:王渊命
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
威锋网7月10日消锋网7月10日消息,《植物大战僵尸2》 如今...
威锋网7月10日消息,《植物大...
近日,开发商 Esquilax Games ..
说到方块游戏,相信有很多朋友应该还会记得 Gavina Games 早...
威锋网7月10日消息,《植物大...
近日,开发商 Esquilax Games ..
说到方块游戏,相信有很多朋友应该还会记得 Gavina Games 早...
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
再吸金!SE推出《最终幻想:全员勇者》钥匙扣
您需要通过验证再能继续浏览 3秒后开始验证
威锋旗下产品
Hi~我是威威!
 粤公网安备 11号
新三板上市公司威锋科技(836555)
增值电信业务经营许可证:
Powered by Discuz!12:59 提问
Mac上安装python失败,求解答
MacBook-Air:~ Peter$ brew install python --host
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==& Installing dependencies for python: sqlite, gdbm, makedepend
==& Installing python dependency: sqlite
==& Downloading
Already downloaded: /Library/Caches/Homebrew/sqlite-3.8.11.1.tar.gz
==& ./configure --prefix=/usr/local/Cellar/sqlite/3.8.11.1 --enable-dynamic-exte
checking for suffix of executables...
# checking whether we are cross compiling... **configure: error: in `/private/tmp/sqlite0-1mkurp5/sqlite-autoconf-3081101':
# configure: error: cannot run C compiled programs.
# If you meant to cross compile, use `--host'.
# See `config.log' for more details
READ THIS:
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
按赞数排序
虽说无论开头还是结尾都已经说了不支持吧2333。。。。。
不过用uname -m看一下平台,然后configure的时候加上host参数试一下?(--host=你的平台)
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
--- 不支持你的OS
其他相关推荐Mac OS升级10.11后,CocoaPods安装与使用_MAC教程-织梦者
当前位置:&>&&>& > Mac OS升级10.11后,CocoaPods安装与使用
Mac OS升级10.11后,CocoaPods安装与使用
Cocoapods安装:
一、升级Ruby环境,终端下执行:
$ sudo gem update --system
二、安装CocoaPods时我们要访问cocoapods.org,因为的那个镜像(https://ruby.taobao.org/)已经不可以使用了。现在用最新支持的ruby镜像(https://gems.ruby-china.org/)
2.1 输入命令行:
$ gem sources -r https://rubygems.org/
(执行前先移除旧版本的镜像,如果不知道电脑上目前用的是什么镜像,可用$gem
sources -l 来查看)
$gem sources -a https://gems.ruby-china.org/
(增加可用的镜像)
$gem sources -l
(检查使用替换镜像是否成功)
2.4 在终端中出现下面文字表明上面的命令执行成功:
*** CURRENT SOURCES ***
http://gems.ruby-china.org/
2.5 因为mac OS 10.11以后把cocoapods直接干掉了,再加一句,完美解决问题:
$sudo gem install -n /usr/local/bin
$sudo xcode-select --switch/Applications/Xcode.app
2.6 最后在终端中输入如下命令来完成安装:
$pod setup
(将 CocoaPods Specs repository复制到你电脑上~/.cocoapods目录下)
如果~/.cocoapods 是空文件夹表明安装失败 ,就需要重新setup。
命令如下:
$pod reporemove master
<img alt="Mac OS升级10.11后,CocoaPods安装与使用" src="/d/file/p//348dafedf329b30688e8c.jpg" setup 进入Setting up CocoaPods master repo 等待的时候表示正在下载了,此时可通过新打开一个终端窗口,输入&cd
~/.cocoapods/&命令行跳到cocoapods文件夹内,执行&du -sh *&查看正在下载的文件夹已下载了多少。
#usr/bin/python
#coding:utf-8
#系统函数模块
import time
#时间函数模块
while x&= 100000:
currentMB = os.system(&du sh *&)
print&已经下载%rM了!&%currentMB
print&不错!第%d次循环...&%x
time.sleep(10)
#每间隔10秒,执行一次,文件大小变化效果看的较明显。
注:“du sh” 命令是mac OS自带的系统命令,用来查看当前文件夹下每个文件的存储大小;保存python文件,以.py结尾,拷贝此文件到所需要的文件夹目录,执行 python xxxx.py 即可。
稍等片刻,安装完成。
$pod search AFNetworking
得到结果如下图:
回车后,输入命令创建Podfile文件
$touch Podfile
我们可以看到,在根目录下,多了一个Podfile文件
$vim Podfile
然后在Podfile文件中输入以下文字:
platform:ios,&#39;7.0&#39;
target &#39;cocoapodsDemo&#39;do
pod&#39;AFNetworking&#39;, &#39;~&3.1.0&#39;
意思是,要下载的AFNetworking版本是3.1.0。
在编辑完后按 esc,然后按&:&,这个时候输入wq保存退出。
4.这时候,就可以利用CocoPods下载AFNetworking类库了。还是在终端中的当前项目目录下,运行以下命令:
$ pod install
安装成功。
这个时候,会看到多了一个.xcworkspace工程,以后打开项目就用 cocoapodsDemo.xcworkspace 打开,而不是之前的.xcodeproj文件。
#import &AFNetworking.h&或#import &AFNetworking.h&
然后编译,观察是否出错。
<img alt="Mac OS升级10.11后,CocoaPods安装与使用" src="/d/file/p//638fa46ba3b61c4280d1.jpg"
以上就是Mac OS升级10.11后,CocoaPods安装与使用的全文介绍,希望对您学习mac开发和使用有所帮助.
这些内容可能对你也有帮助
更多可查看MAC教程列表页。
猜您也会喜欢这些文章

我要回帖

更多关于 用homebrew安装python 的文章

 

随机推荐