osx mountain lion - Why is brew doctor stalling on mdfind? -


the problem

i've been having issues homebrew, thought i'd run brew doctor, it's stalling on mdfind. brew --config hangs on mdfind after outputting following:

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 seems work:

$ brew update up-to-date. 

i can install things:

$ 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 

and work:

$ rsnapshot rsnapshot 1.3.1 usage: rsnapshot [-vtxqvd] [-c cfgfile] [command] [args] type "rsnapshot help" or "man rsnapshot" more information.   

what i've tried

  • uninstalling packages
  • untapping kegs
  • reinstalling homebrew
  • reinstalling xcode + command line tools
  • installing xquartz (which had via command line)
  • re-indexing system drive spotlight
  • resetting xcode-select path
  • deleting /usr/share/xcode-select/

workaround

after running brew doctor, if terminate mdfind process twice (one instance spawns after other terminated), successful return:

$ brew doctor system ready brew. 

same deal config:

$ 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 

note how next item in config, after usual stall point, x11.

more info

i had remove manually compiled version of icu system, , there's small chance removed couple of binaries weren't installed icu. i'm not sure, thought i'd mention in case. if makes me sound silly indeed.

brew doctor gives no output on termination.

brew doctor seems stall on check_for_latest_xquartz check in particular, i've checked with:

$ brew doctor check_for_latest_xquartz 

my xcode-select path seems correct:

$ xcode-select --print-path /applications/xcode.app/contents/developer 

mdfind can find xquartz:

$ mdfind "kmditemcfbundleidentifier == 'org.macosforge.xquartz.x11'" /applications/utilities/xquartz.app 

...but still doesn't return.

related links

the last post in github link seems answer question:

this far useful thread on frustrating topic. tried above , found brew doctor hung on:

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 killing mdfind multiple times @ least allows brew doctor continue not solution. 

when brew doctor completed, noticed 1 warning:

check_user_path_2 warning: homebrew's bin not found in path. consider setting path example     echo export path='/usr/local/bin:$path' >> ~/.bash_profile 

this added export path=/usr/local/bin:$path ~/.bash_profile. @ beginning of ~/.bash_profile , twice @ end deleted last statement. opening new terminal window, /usr/local/bin @ beginning of path instead of in middle.

now brew doctor runs without hanging!

if doesn't fix problem, suggest contributing thread on github or opening new issue on github, may bug in homebrew.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -