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

homebrew 怎么直接安装二进制的包,而不是从源码编译?

  •  
  •   fx · 2016-09-30 15:39:42 +08:00 · 2332 次点击
    这是一个创建于 2765 天前的主题,其中的信息可能已经有所发展或是发生改变。
    11 条回复    2016-09-30 17:08:03 +08:00
    Satelli
        1
    Satelli  
       2016-09-30 16:07:43 +08:00   ❤️ 1


    直接装就是二进制的。
    fx
        2
    fx  
    OP
       2016-09-30 16:47:12 +08:00
    @Satelli 啥意思
    fx
        3
    fx  
    OP
       2016-09-30 16:47:56 +08:00
    @Satelli ![]( )
    fx
        4
    fx  
    OP
       2016-09-30 16:48:06 +08:00
    @Satelli 直接下载 src 了
    lululau
        5
    lululau  
       2016-09-30 16:50:16 +08:00
    Satelli
        6
    Satelli  
       2016-09-30 16:50:28 +08:00   ❤️ 1
    我这儿没环境, qt5 要完整的 Xcode ,我电脑上没装。
    raoxiaowen
        7
    raoxiaowen  
       2016-09-30 16:51:50 +08:00 via Android
    二进制下载失败才会从源码来编译,这是默认的情况,你也可以指定从源码编译。
    fx
        8
    fx  
    OP
       2016-09-30 16:56:08 +08:00
    @Satelli ![]( )
    Satelli
        9
    Satelli  
       2016-09-30 16:58:10 +08:00   ❤️ 1
    @fx 这个 bottle 就是 homebrew 预编译好的二进制包。你还改了镜像啊。
    fx
        10
    fx  
    OP
       2016-09-30 17:07:25 +08:00
    @Satelli 改了镜像

    ```
    brew install qt5 -v
    ==> Using the sandbox
    /usr/bin/sandbox-exec -f /tmp/homebrew20160930-17526-av9mw3.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qt5.rb --verbose
    ==> Downloading https://download.qt.io/official_releases/qt/5.6/5.6.1-1/single/qt-everywhere-opensource-src-5.6.1-1.tar.xz
    ==> Downloading from http://mirrors.ustc.edu.cn/qtproject/archive/qt/5.6/5.6.1-1/single/qt-everywhere-opensource-src-5.6.1-1.tar.xz
    /usr/bin/curl --fail --remote-time --location --user-agent Homebrew/1.0.5 (Macintosh; Intel macOS 10.12) curl/7.49.1 http://mirrors.ustc.edu.cn/qtproject/archive/qt/5.6/5.6.1-1/single/qt-everywhere-opensource-src-5.6.1-1.tar.xz -C 0 -o /Users/lidashuang/Library/Caches/Homebrew/qt5-5.6.1-1.tar.xz.incomplete --connect-timeout 5
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    15 283M 15 43.6M 0 0 3613k 0 0:01:20 0:00:12 0:01:08 4267k
    ```
    fx
        11
    fx  
    OP
       2016-09-30 17:08:03 +08:00
    @Satelli youtube-dl 是可以, qt5 不知道为啥不行
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2857 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:44 · PVG 22:44 · LAX 07:44 · JFK 10:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.