首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当运行brew医生或brew -config时,国产brew冻结。

当运行brew医生或brew -config时,国产brew冻结。
EN

Stack Overflow用户
提问于 2015-01-09 12:02:36
回答 1查看 1.1K关注 0票数 0

几天前,当我尝试运行brew doctorbrew --config时,自制软件开始卡住了。产出如下:

代码语言:javascript
复制
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 391ed374442cb8f91d9168ccd23f1c97b84686d1
Last commit: 6 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.10.1-x86_64

代码语言:javascript
复制
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: Setting DYLD_* vars can break dynamic linking.
Set variables:
    DYLD_LIBRARY_PATH: /usr/local/kde4/lib:/Users/<username>/Desktop/anderes/benvium-libimobiledevice-macosx-8507dd2

退出的唯一方法是向进程发送一个SIGINT。总之,brew update起了作用:

代码语言:javascript
复制
$ brew update
Updated Homebrew from cd9895d9 to 391ed374.
==> Updated Formulae
curl         fwknop   john-jumbo   sshrc
$ brew update
Already up-to-date.

我尝试过重新安装自制,但它似乎不起作用:

代码语言:javascript
复制
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
    rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
$ rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
/Users/<username>/.rbenv/shims/ruby: line 21: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv: No such file or directory

令人惊讶的是,brew命令本身即使在上面的rm命令之后也能工作。我在想我做错了什么。谢谢你的帮助!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-01-09 13:39:27

我现在有了一个解决方案: xcode-select指向错误的目录。sudo xcode-select -switch /Applications/Xcode.app解决了这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27860144

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档