Homebrew 1.0 发布

2016-09-22 19:33:40 +08:00
 IgniteWhite

http://brew.sh/2016/09/21/homebrew-1.0.0/

6414 次点击
所在节点    macOS
35 条回复
zander
2016-09-23 12:32:26 +08:00
@windirt cd $(brew --prefix)/Homebrew && git fetch && git reset --hard origin/master
boywang004
2016-09-23 23:52:31 +08:00
@zander THX. it works.
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
2016-09-24 01:25:55 +08:00
诶,好像执行两次 brew update 就没问题了。。。啥情况
cnmusa
2016-09-26 13:43:01 +08:00
Homebrew 不是自酿啤酒的意思?
IgniteWhite
2016-09-28 01:56:22 +08:00
@cnmusa 是的。所以这个包管理器还有 cellar 和 keg 等组件
cnmusa
2016-09-28 07:06:37 +08:00
@IgniteWhite 什么意思?家酿啤酒和这个有什么关系呢
ruby109
2016-09-28 13:10:38 +08:00
brew update 不了...提示 /usr/local must be writable...按照 stackoverflow 上 sudo 了也不行...
IgniteWhite
2016-09-28 13:45:55 +08:00
@cnmusa 官网上 FAQ 有解释

@ruby109 brew doctor
ruby109
2016-09-29 00:52:06 +08:00
@IgniteWhite brew doctor 跳了更多东西出来,说是 local 和 local 下的 sbin 都不可写,不支持 osx10.12 ,还说有个 bug....
IgniteWhite
2016-09-29 09:38:03 +08:00
@ruby109 doctor 就是用来诊断的……应该有解决方法提示吧?你可以把 brew doctor 之后的信息贴出来。
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
2016-09-29 19:22:43 +08:00
@ruby109 这不是都告诉怎么做了嘛……再有问题就该去 github 提交工单噜
ruby109
2016-09-30 11:50:42 +08:00
@IgniteWhite 我照着他说的做了好几遍依然不行啊...我再试试,实在不行确实要去 github 了...
RqPS6rhmP3Nyn3Tm
2016-10-01 12:45:23 +08:00
真希望能有 pacman 和 AUR 的 macOS 移植……最好的包管理没有之一

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

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

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

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

© 2021 V2EX