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

Homebrew 1.0 发布

  •  2
     
  •   IgniteWhite · 2016-09-22 19:33:40 +08:00 · 6404 次点击
    这是一个创建于 2983 天前的主题,其中的信息可能已经有所发展或是发生改变。
    35 条回复    2016-10-01 12:45:23 +08:00
    EricCartman
        1
    EricCartman  
       2016-09-22 20:04:38 +08:00 via Android
    现在才 1.0 啊
    IgniteWhite
        2
    IgniteWhite  
    OP
       2016-09-22 20:54:34 +08:00
    @EricCartman beta 版用了 7 年
    IgniteWhite
        3
    IgniteWhite  
    OP
       2016-09-22 20:56:40 +08:00   ❤️ 1
    @EricCartman 不是我用了 7 年,说他们 beta 了 7 年……
    zgoing
        4
    zgoing  
       2016-09-22 21:07:26 +08:00
    文件目录改了。。。。
    IgniteWhite
        5
    IgniteWhite  
    OP
       2016-09-22 21:10:33 +08:00
    @zgoing 是呀
    windirt
        6
    windirt  
       2016-09-22 21:53:12 +08:00
    我现在 brew update 完会出来这个

    Checking out v1.0.1 in /usr/local/Homebrew...
    To checkout v1.0.1 in /usr/local/Homebrew run:
    'cd /usr/local/Homebrew && git checkout v1.0.1
    crystone
        7
    crystone  
       2016-09-22 22:33:11 +08:00
    brew cask 并入 brew 了么?那以后就没有 brew cask install xxx 了?
    yyfearth
        8
    yyfearth  
       2016-09-22 23:14:54 +08:00
    @crystone brew cask 没有并入 homebrew ,但是早就被集成了,意思是不用再额外安装或 tap
    所以还是继续 brew cask install xxx
    brq417059
        9
    brq417059  
       2016-09-22 23:22:12 +08:00
    为什么在~目录 brew --version 是 1.0.0 。在 /usr/local/Homebrew/bin 里 --version 是 1.0.2 ?
    IgniteWhite
        10
    IgniteWhite  
    OP
       2016-09-22 23:23:07 +08:00
    @brq417059 不知道
    @windirt 同,我也不清楚
    IgniteWhite
        11
    IgniteWhite  
    OP
       2016-09-22 23:33:54 +08:00
    @windirt
    @brq417059
    官方论坛里有人的回复:
    I re-read the Homebrew 1.0.0 announcement again and noticed the following bullet point:

    brew update sped up by only running git fetch if necessary

    So I cd'ed to /usr/local/Homebrew and executed
    git fetch
    which yielded:
    From https://github.com/Homebrew/brew
    * [new tag] 1.0.2 -> 1.0.2

    Then after running brew update twice, I no longer see the message about "To checkout v1.0.1" again.

    It seems that maybe the stock brew update needs to run git fetch in more cases than it thinks it does?
    lln133208
        12
    lln133208  
       2016-09-23 09:03:56 +08:00
    之前已经安装的东西会从 /usr/local 挪到 /usr/local/Homebrew 吗?
    cairnechen
        13
    cairnechen  
       2016-09-23 09:32:20 +08:00
    @IgniteWhite 所以现在要怎么更新呢?看了下官方说明好像没有明确说明这一点
    IgniteWhite
        14
    IgniteWhite  
    OP
       2016-09-23 09:41:11 +08:00 via iPhone
    @cairnechen brew update 即可。再有问题参见 11 楼
    IgniteWhite
        15
    IgniteWhite  
    OP
       2016-09-23 09:41:35 +08:00 via iPhone
    @lln133208 不知道,我也想问
    leavic
        16
    leavic  
       2016-09-23 09:55:11 +08:00
    qt 挂了, qt5 也挂了,我懵逼了。。。
    flashing
        17
    flashing  
       2016-09-23 09:59:30 +08:00
    @brq417059 我也发现了,这是什么情况?
    tony1016
        18
    tony1016  
       2016-09-23 10:13:14 +08:00
    🍻
    StevenjlHo
        19
    StevenjlHo  
       2016-09-23 12:19:08 +08:00
    前几天就发现有提示把安装目录迁移到 /usr/local/Homebrew ,原来是升级到 1.0
    oop99
        20
    oop99  
       2016-09-23 12:29:01 +08:00
    感谢, 执行了 2 次 brew update 升级成功
    brew --version
    Homebrew 1.0.2-12-gb7e7434-dirty
    zander
        21
    zander  
       2016-09-23 12:32:26 +08:00   ❤️ 1
    @windirt cd $(brew --prefix)/Homebrew && git fetch && git reset --hard origin/master
    boywang004
        22
    boywang004  
       2016-09-23 23:52:31 +08:00
    @zander THX. it works.
    killenfant
        23
    killenfant  
       2016-09-24 01:10:30 +08:00
    @IgniteWhite
    @zander

    感觉还是有问题。执行命令之后暂时正常。但下一次 brew update 后检查版本,会发现又退回去了,出现 no git repository ,升级时还会提示 brew link 云云?

    这是我打开方式不对吗。。。

    brew -v
    Homebrew >1.0.0 (no git repository)
    Homebrew/homebrew-core (git revision e5c2; last commit 2016-09-23)

    brew config
    HOMEBREW_VERSION: >1.0.0 (no git repository)
    ORIGIN: https://github.com/Homebrew/brew
    HEAD: bbed7246bc5c5b7acb8c1d427d10b43e090dfd39
    Last commit: 29 hours ago
    Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
    Core tap HEAD: e5c22fab4a87d7908539890a6f191baba14934af
    Core tap last commit: 2 hours ago
    HOMEBREW_PREFIX: /usr/local
    HOMEBREW_REPOSITORY: /usr/local/Homebrew
    HOMEBREW_CELLAR: /usr/local/Cellar
    killenfant
        24
    killenfant  
       2016-09-24 01:25:55 +08:00
    诶,好像执行两次 brew update 就没问题了。。。啥情况
    cnmusa
        25
    cnmusa  
       2016-09-26 13:43:01 +08:00 via Android
    Homebrew 不是自酿啤酒的意思?
    IgniteWhite
        26
    IgniteWhite  
    OP
       2016-09-28 01:56:22 +08:00 via iPhone
    @cnmusa 是的。所以这个包管理器还有 cellar 和 keg 等组件
    cnmusa
        27
    cnmusa  
       2016-09-28 07:06:37 +08:00 via Android
    @IgniteWhite 什么意思?家酿啤酒和这个有什么关系呢
    ruby109
        28
    ruby109  
       2016-09-28 13:10:38 +08:00
    brew update 不了...提示 /usr/local must be writable...按照 stackoverflow 上 sudo 了也不行...
    IgniteWhite
        29
    IgniteWhite  
    OP
       2016-09-28 13:45:55 +08:00
    @cnmusa 官网上 FAQ 有解释

    @ruby109 brew doctor
    ruby109
        30
    ruby109  
       2016-09-29 00:52:06 +08:00
    @IgniteWhite brew doctor 跳了更多东西出来,说是 local 和 local 下的 sbin 都不可写,不支持 osx10.12 ,还说有个 bug....
    IgniteWhite
        31
    IgniteWhite  
    OP
       2016-09-29 09:38:03 +08:00
    @ruby109 doctor 就是用来诊断的……应该有解决方法提示吧?你可以把 brew doctor 之后的信息贴出来。
    ruby109
        32
    ruby109  
       2016-09-29 15:08:53 +08:00
    @IgniteWhite 我之前照着 doctor 的做了还是一样的问题啊...
    Warning: /usr/local is not writable.

    You should probably change the ownership and permissions of /usr/local
    back to your user account.
    sudo chown -R $(whoami) /usr/local

    Warning: /usr/local/sbin isn't writable.

    This can happen if you "sudo make install" software that isn't managed
    by Homebrew. If a formula tries to write a file to this directory, the
    install will fail during the link step.

    You should probably change the ownership and permissions of /usr/local/sbin
    back to your user account.
    sudo chown -R $(whoami) /usr/local/sbin

    Warning: /usr/local is not writable.
    Even if this directory was writable when you installed Homebrew, other
    software may change permissions on this directory. For example, upgrading
    to OS X El Capitan has been known to do this. Some versions of the
    "InstantOn" component of Airfoil or running Cocktail cleanup/optimizations
    are known to do this as well.

    You should probably change the ownership and permissions of /usr/local
    back to your user account.
    sudo chown -R $(whoami) /usr/local

    Warning: "config" scripts exist outside your system or Homebrew directories.
    `./configure` scripts often look for *-config scripts to determine if
    software packages are installed, and what additional flags to use when
    compiling and linking.

    Having additional scripts in your path can confuse software installed via
    Homebrew if the config script overrides a system or Homebrew provided
    script of the same name. We found the following "config" scripts:
    /Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
    /Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config
    /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config

    Warning: Python is installed at /Library/Frameworks/Python.framework

    Homebrew only supports building against the System-provided Python or a
    brewed Python. In particular, Pythons installed to /Library can interfere
    with other software installs.

    Warning: You are using OS X 10.12.
    We do not provide support for this pre-release version.
    You may encounter build failures or other breakages.

    Warning: Suspicious git origin remote found.

    With a non-standard origin, Homebrew won't pull updates from
    the main repository. The current git origin is:
    git://mirrors.ustc.edu.cn/homebrew.git

    Unless you have compelling reasons, consider setting the
    origin remote to point at the main repository, located at:
    https://github.com/Homebrew/brew.git

    Warning: Homebrew's sbin was not found in your PATH but you have installed
    formulae that put executables in /usr/local/sbin.
    Consider setting the PATH for example like so
    echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
    Error: Unsupported special dependency :perl
    Please report this bug:
    https://git.io/brew-troubleshooting
    /usr/local/Library/Homebrew/dependency_collector.rb:123:in `parse_symbol_spec'
    /usr/local/Library/Homebrew/compat/dependency_collector.rb:17:in `parse_symbol_spec'
    /usr/local/Library/Homebrew/dependency_collector.rb:73:in `parse_spec'
    /usr/local/Library/Homebrew/dependency_collector.rb:61:in `build'
    /usr/local/Library/Homebrew/dependency_collector.rb:48:in `block in fetch'
    /usr/local/Library/Homebrew/dependency_collector.rb:48:in `fetch'
    /usr/local/Library/Homebrew/dependency_collector.rb:48:in `fetch'
    /usr/local/Library/Homebrew/dependency_collector.rb:38:in `add'
    /usr/local/Library/Homebrew/software_spec.rb:155:in `depends_on'
    /usr/local/Library/Homebrew/formula.rb:1859:in `block in depends_on'
    /usr/local/Library/Homebrew/formula.rb:1859:in `each'
    /usr/local/Library/Homebrew/formula.rb:1859:in `depends_on'
    /usr/local/Library/Taps/homebrew/homebrew-core/Formula/vim.rb:42:in `<class:Vim>'
    /usr/local/Library/Taps/homebrew/homebrew-core/Formula/vim.rb:1:in `load_formula'
    /usr/local/Library/Homebrew/formulary.rb:21:in `module_eval'
    /usr/local/Library/Homebrew/formulary.rb:21:in `load_formula'
    /usr/local/Library/Homebrew/formulary.rb:34:in `load_formula_from_path'
    /usr/local/Library/Homebrew/formulary.rb:83:in `load_file'
    /usr/local/Library/Homebrew/formulary.rb:74:in `klass'
    /usr/local/Library/Homebrew/formulary.rb:70:in `get_formula'
    /usr/local/Library/Homebrew/formulary.rb:167:in `get_formula'
    /usr/local/Library/Homebrew/formulary.rb:207:in `factory'
    /usr/local/Library/Homebrew/formulary.rb:226:in `from_rack'
    /usr/local/Library/Homebrew/formula.rb:1134:in `block in installed'
    /usr/local/Library/Homebrew/formula.rb:1132:in `map'
    /usr/local/Library/Homebrew/formula.rb:1132:in `installed'
    /usr/local/Library/Homebrew/diagnostic.rb:1184:in `check_missing_deps'
    /usr/local/Library/Homebrew/cmd/doctor.rb:38:in `block in doctor'
    /usr/local/Library/Homebrew/cmd/doctor.rb:31:in `each'
    /usr/local/Library/Homebrew/cmd/doctor.rb:31:in `doctor'
    /usr/local/Library/brew.rb:97:in `<main>'
    IgniteWhite
        33
    IgniteWhite  
    OP
       2016-09-29 19:22:43 +08:00
    @ruby109 这不是都告诉怎么做了嘛……再有问题就该去 github 提交工单噜
    ruby109
        34
    ruby109  
       2016-09-30 11:50:42 +08:00   ❤️ 1
    @IgniteWhite 我照着他说的做了好几遍依然不行啊...我再试试,实在不行确实要去 github 了...
    RqPS6rhmP3Nyn3Tm
        35
    RqPS6rhmP3Nyn3Tm  
       2016-10-01 12:45:23 +08:00 via iPhone   ❤️ 1
    真希望能有 pacman 和 AUR 的 macOS 移植……最好的包管理没有之一
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2669 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:14 · PVG 13:14 · LAX 21:14 · JFK 00:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.