我一直遇到自制软件的问题,所以我想我会运行brew doctor
,但它只是停留在mdfind上。输出以下内容后,brew --config
也会在mdfind上挂起:
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: c2cc58163b54a9ea2ee56febfc722396079c5b9a
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.8.3-x86_64
Xcode: 4.6.2
CLT: 4.6.0.0.1.1365549073
LLVM-GCC: build 2336
Clang: 4.2 build 425
brew update
似乎有效:
$ brew update
Already up-to-date.
我甚至可以安装东西:
$ brew install rsnapshot
==> Downloading http://rsnapshot.org/downloads/rsnapshot-1.3.1.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/rsnapshot/1.3.1 --mandir=/usr/local/C
==> make install
/usr/local/Cellar/rsnapshot/1.3.1: 12 files, 356K, built in 4 seconds
他们甚至工作:
$ rsnapshot
rsnapshot 1.3.1
Usage: rsnapshot [-vtxqVD] [-c cfgfile] [command] [args]
Type "rsnapshot help" or "man rsnapshot" for more information.
/usr/share/xcode-select/
运行brew doctor
后,如果我终止mdfind进程两次(一个实例在另一个实例终止后生成),我终于得到了一个成功的返回:
$ brew doctor
Your system is ready to brew.
与配置相同:
$ brew --config
OMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: c2cc58163b54a9ea2ee56febfc722396079c5b9a
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.8.3-x86_64
Xcode: 4.6.2
CLT: 4.6.0.0.1.1365549073
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
注意配置中的下一个项目,在通常的停顿点之后是X11。
我最近不得不从我的系统中删除手动编译的ICU版本,并且我实际上删除了一些未由ICU安装的二进制文件的可能性很小。我不确定,但我想我会提到它以防万一。即使让我听起来确实很傻。
brew doctor
在终止时没有输出。
brew doctor
似乎特别停留在check_for_latest_xquartz
支票上,我已查看过:
$ brew doctor check_for_latest_xquartz
我的xcode-select
路径似乎正确无误:
$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
mdfind
可以找到XQuartz:
$ mdfind "kMDItemCFBundleIdentifier == 'org.macosforge.xquartz.X11'"
/Applications/Utilities/XQuartz.app
......但它仍然没有回来。
答案 0 :(得分:0)
GitHub链接中的最后一篇文章似乎回答了这个问题:
这是迄今为止这个非常令人沮丧的主题最有用的主题。我尝试了以上所有内容,发现酿酒医生挂了:
check_for_autoconf (kill mdfind 2x) check_for_latest_xquartz (kill mdfind 2x) check_for_linked_keg_only_brews (kill mdfind 4x) check_for_osx_gcc_installer (kill mdfind 2x) check_for_stray_developer_directory (kill mdfind 2x) check_missing_deps (kill mdfind 2x) check_standard_compilers (kill mdfind 1x) Note that killing mdfind multiple times at least allows brew doctor to continue but that is not a solution.
当酿酒医生最终完成时,我注意到一个警告:
check_user_path_2 Warning: Homebrew's bin was not found in your PATH. Consider setting the PATH for example like so echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
这会将导出
PATH=/usr/local/bin:$PATH
添加到~/.bash_profile
。 这也是~/.bash_profile
的开头,最后两次,所以我删除了除最后一个语句之外的所有语句。打开一个新的终端窗口,现在/usr/local/bin
位于我的路径的开头而不是中间。现在brew医生不停地跑!
如果这不能解决问题,我建议在GitHub上为这个帖子做贡献或在GitHub上打开一个新问题,因为它可能是自制软件中的错误。