V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
tyhunter
V2EX  ›  问与答

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

  •  
  •   tyhunter · 2016-01-09 20:16:04 +08:00 · 8338 次点击
    这是一个创建于 3243 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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.
    7 条回复    2016-09-20 21:59:33 +08:00
    znoodl
        1
    znoodl  
       2016-01-09 20:22:42 +08:00   ❤️ 1
    homebrew-cask 上个月有重大更新,最好 brew doctor 看下,如果有问题就 brew uninstall --force brew-cask; brew update

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

    赌 5 毛 brew 半年没做过更新 其他楼上说了
    Valyrian
        3
    Valyrian  
       2016-01-09 20:38:16 +08:00 via iPhone   ❤️ 1
    brew update
    tyhunter
        4
    tyhunter  
    OP
       2016-01-09 20:40:40 +08:00
    @znoodl
    @187j3x1
    @Valyrian
    好像真是 brew 没更新的关系...平时不常用, 10.11 也是从 10.10 升上来的
    Alesso
        5
    Alesso  
       2016-01-09 21:01:34 +08:00   ❤️ 1
    如果是权限问题可以看看这个 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
        6
    Pastsong  
       2016-01-09 21:46:55 +08:00 via Android
    关于 homebrew 的用法,至少一周就要 brew update 一次, homebrew 是不会自己更新源的
    shliujing
        7
    shliujing  
       2016-09-20 21:59:33 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3367 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:27 · PVG 19:27 · LAX 03:27 · JFK 06:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.