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

2016-01-09 20:16:04 +08:00
 tyhunter
Titan:~ hunter$ brew install mpv
Error: No available formula for mpv
Searching formulae...
Searching taps...
Caskroom/cask/mpv
Titan:~ hunter$ brew install Caskroom/cask/mpv
==> brew cask install Caskroom/cask/mpv
==> Caveats
Cask mpv installs files under "/usr/local". The presence of such
files can cause warnings when running "brew doctor", which is considered
to be a bug in homebrew-cask.

==> Downloading https://github.com/mpv-player/mpv/releases/download/v0.14.0/mpv_
Already downloaded: /Library/Caches/Homebrew/mpv-0.14.0.tar.bz2
==> Verifying checksum for Cask mpv
==> Symlinking App 'mpv.app' to '/Users/hunter/Applications/mpv.app'
==> Symlinking Binary 'mpv' to '/usr/local/bin/mpv'
==> ln: /usr/local/bin/mpv: Permission denied
Error: Command failed to execute!

==> Failed command:
["/bin/ln", "-hfs", "--", "#<Pathname:/opt/homebrew-cask/Caskroom/mpv/0.14.0/mpv.app/Contents/MacOS/mpv>", "#<Pathname:/usr/local/bin/mpv>"]

==> Output of failed command:


==> Exit status of failed command:
#<Process::Status: pid 67908 exit 1>
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.
8328 次点击
所在节点    问与答
7 条回复
znoodl
2016-01-09 20:22:42 +08:00
homebrew-cask 上个月有重大更新,最好 brew doctor 看下,如果有问题就 brew uninstall --force brew-cask; brew update

然后再试下
187j3x1
2016-01-09 20:34:16 +08:00
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.

赌 5 毛 brew 半年没做过更新 其他楼上说了
Valyrian
2016-01-09 20:38:16 +08:00
brew update
tyhunter
2016-01-09 20:40:40 +08:00
@znoodl
@187j3x1
@Valyrian
好像真是 brew 没更新的关系...平时不常用, 10.11 也是从 10.10 升上来的
Alesso
2016-01-09 21:01:34 +08:00
如果是权限问题可以看看这个 http://www.jianshu.com/p/769f1cd249e7
如果搞不清楚还是先 `brew doctor` 吧,应该会提示你 `brew update` 的。
从回复判断,楼主应该是不常用 CLI 的,可能你还需要:
安装 mpv 用 `brew install mpv --with-bundle`,等安装完以后就可以 `brew linkapps mpv`,这样就可以在应用程序里生成 .app 文件,以便直接点击文件播放视频了。
顺便, mpv.conf 里可以加上 `fs-black-out-screens` 这么一行,以避免全屏时掉帧的问题。
Pastsong
2016-01-09 21:46:55 +08:00
关于 homebrew 的用法,至少一周就要 brew update 一次, homebrew 是不会自己更新源的
shliujing
2016-09-20 21:59:33 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/249564

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX