V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
liuyanjun0826
V2EX  ›  macOS

homebrew 安装不能

  •  
  •   liuyanjun0826 · 2016-04-03 13:49:41 +08:00 via iPhone · 2149 次点击
    这是一个创建于 2958 天前的主题,其中的信息可能已经有所发展或是发生改变。
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; 用此命令卡在
    Last login: Sun Apr 3 13:46:48 on ttys000
    liuyanjun0826deMac-Pro:~ liuyanjun0826$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)";
    ==> This script will install:
    /usr/local/bin/brew
    /usr/local/Library/...
    /usr/local/share/man/man1/brew.1

    Press RETURN to continue or any other key to abort
    ==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
    Password:
    ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
    ==> /usr/bin/sudo /usr/sbin/chown liuyanjun0826 /Library/Caches/Homebrew
    ==> Downloading and installing Homebrew...
    安装不下去,没办法上 youtube-dl 下载视频。。求救
    5 条回复    2016-04-03 23:44:56 +08:00
    UnisandK
        1
    UnisandK  
       2016-04-03 13:54:09 +08:00
    开全局梯子试试
    liuyanjun0826
        2
    liuyanjun0826  
    OP
       2016-04-03 13:58:13 +08:00 via iPhone
    @UnisandK 现在能下了,没开梯子
    Havee
        3
    Havee  
       2016-04-03 17:43:01 +08:00
    安装好后,可以试试将源替换下,加快速度
    http://havee.me/mac/2016-01/mirror-homebrew-and-caskroom.html

    https://coding.net/u/hae
    sengxian
        4
    sengxian  
       2016-04-03 23:29:20 +08:00
    如果是 El Capitan 的话:

    > 由于 El Capitan 增加了系统完整性保护( System Integrity Protection ),需要先暂时关闭才可进行下一步。操作如下:重启机器,开启时按住 ⌘ Cmd+R ,接着在菜单栏选择工具→终端,输入:

    `csrutil disable`

    接着开机安装,切记:安装结束之后要重新开启,同样的步骤,输入:

    `csrutil enable`
    kookxiang
        5
    kookxiang  
       2016-04-03 23:44:56 +08:00
    @sengxian 我很早就升了 El Capitan , homebrew 默认用的就是 /usr/local ,这个目录不需要关闭 SIP 的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1229 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:15 · PVG 02:15 · LAX 11:15 · JFK 14:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.