$ brew link qt --force
Error: Operation already in progress for qt.formula
Another active Homebrew process is already using qt.formula.
Please wait for it to finish or terminate it to continue.
It appears the error is related to the terminated reinstallation process:
To reproduce, I believe you have to install, do a reinstall, and terminate then - I terminated during the pouring process.
Brew suggests you terminate the in-progress operation, but there is none.
The only 'solution' that exists is to uninstall and reinstall, which is frustrating.
There should be a command that ignores the re-installation artifacts and just removes the formula altogether.
$ brew config
HOMEBREW_VERSION: 1.6.4
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: f904017d721fa1efb2b9d61ca78512c07538ba7c
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 26283dae8bbde0913a826455b007cf07192be9be
Core tap last commit: 22 minutes ago
HOMEBREW_PREFIX: /usr/local
CPU: quad-core 64-bit ivybridge
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/bin/ruby
Clang: 8.1 build 802
Git: 2.5.0 => /usr/local/bin/git
Curl: 7.49.1 => /usr/bin/curl
Java: 1.8.0_73, 1.8.0_05, 1.7.0_51, 1.6.0_65-b14-468
macOS: 10.12.1-x86_64
CLT: 9.2.0.0.1.1510905681
Xcode: 8.3.3
XQuartz: 2.7.11 => /opt/X11
$ brew doctor > ~/b
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 or file an issue; just ignore this. Thanks!
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/3.6/bin/python3-config
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6-config
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6m-config
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/cimgui.dylib
/usr/local/lib/libbgfx.dylib
/usr/local/lib/libcdt.5.dylib
/usr/local/lib/libcgraph.6.dylib
/usr/local/lib/libepeg.0.dylib
/usr/local/lib/libgvc.6.dylib
/usr/local/lib/libgvpr.2.dylib
/usr/local/lib/liblab_gamut.1.dylib
/usr/local/lib/libpathplan.4.dylib
/usr/local/lib/libserial.dylib
/usr/local/lib/libserialport.0.dylib
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib
/usr/local/lib/libui.A.dylib
/usr/local/lib/libui.dylib
/usr/local/lib/libxdot.4.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/Epeg.h
/usr/local/include/X11/X.h
/usr/local/include/X11/Xatom.h
/usr/local/include/X11/Xfuncproto.h
/usr/local/include/X11/Xlib.h
/usr/local/include/X11/Xutil.h
/usr/local/include/X11/cursorfont.h
/usr/local/include/X11/keysym.h
/usr/local/include/X11/keysymdef.h
/usr/local/include/X11/xbytes.h
/usr/local/include/ansidecl.h
/usr/local/include/bfd.h
/usr/local/include/bfdlink.h
/usr/local/include/bgfx/bgfx.h
/usr/local/include/bgfx/bgfxdefines.h
/usr/local/include/bgfx/bgfxplatform.h
/usr/local/include/bgfx/c99/bgfx.h
/usr/local/include/bgfx/c99/bgfxplatform.h
/usr/local/include/bx/allocator.h
/usr/local/include/bx/bx.h
/usr/local/include/bx/cl.h
/usr/local/include/bx/commandline.h
/usr/local/include/bx/config.h
/usr/local/include/bx/cpu.h
/usr/local/include/bx/debug.h
/usr/local/include/bx/endian.h
/usr/local/include/bx/float4_langext.h
/usr/local/include/bx/float4_neon.h
/usr/local/include/bx/float4_ni.h
/usr/local/include/bx/float4_ref.h
/usr/local/include/bx/float4_sse.h
/usr/local/include/bx/float4_t.h
/usr/local/include/bx/float4x4_t.h
/usr/local/include/bx/foreach.h
/usr/local/include/bx/fpumath.h
/usr/local/include/bx/handlealloc.h
/usr/local/include/bx/hash.h
/usr/local/include/bx/macros.h
/usr/local/include/bx/maputil.h
/usr/local/include/bx/mpscqueue.h
/usr/local/include/bx/mutex.h
/usr/local/include/bx/os.h
/usr/local/include/bx/platform.h
/usr/local/include/bx/process.h
/usr/local/include/bx/radixsort.h
/usr/local/include/bx/readerwriter.h
/usr/local/include/bx/ringbuffer.h
/usr/local/include/bx/rng.h
/usr/local/include/bx/sem.h
/usr/local/include/bx/spscqueue.h
/usr/local/include/bx/string.h
/usr/local/include/bx/thread.h
/usr/local/include/bx/timer.h
/usr/local/include/bx/tokenizecmd.h
/usr/local/include/bx/uint32_t.h
/usr/local/include/compat/freebsd/alloca.h
/usr/local/include/compat/freebsd/malloc.h
/usr/local/include/compat/freebsd/signal.h
/usr/local/include/compat/ios/malloc.h
/usr/local/include/compat/mingw/alloca.h
/usr/local/include/compat/mingw/sal.h
/usr/local/include/compat/mingw/specstrings_strict.h
/usr/local/include/compat/mingw/specstrings_undef.h
/usr/local/include/compat/msvc/alloca.h
/usr/local/include/compat/msvc/dirent.h
/usr/local/include/compat/msvc/inttypes.h
/usr/local/include/compat/msvc/pre1600/stdint.h
/usr/local/include/compat/msvc/stdbool.h
/usr/local/include/compat/nacl/memory.h
/usr/local/include/compat/osx/malloc.h
/usr/local/include/dis-asm.h
/usr/local/include/fakemysql.h
/usr/local/include/fakepq.h
/usr/local/include/fakesql.h
/usr/local/include/gmock/gmock-actions.h
/usr/local/include/gmock/gmock-cardinalities.h
/usr/local/include/gmock/gmock-generated-actions.h
/usr/local/include/gmock/gmock-generated-function-mockers.h
/usr/local/include/gmock/gmock-generated-matchers.h
/usr/local/include/gmock/gmock-generated-nice-strict.h
/usr/local/include/gmock/gmock-matchers.h
/usr/local/include/gmock/gmock-more-actions.h
/usr/local/include/gmock/gmock-more-matchers.h
/usr/local/include/gmock/gmock-spec-builders.h
/usr/local/include/gmock/gmock.h
/usr/local/include/gmock/internal/custom/gmock-generated-actions.h
/usr/local/include/gmock/internal/custom/gmock-matchers.h
/usr/local/include/gmock/internal/custom/gmock-port.h
/usr/local/include/gmock/internal/gmock-generated-internal-utils.h
/usr/local/include/gmock/internal/gmock-internal-utils.h
/usr/local/include/gmock/internal/gmock-port.h
/usr/local/include/graphviz/arith.h
/usr/local/include/graphviz/cdt.h
/usr/local/include/graphviz/cgraph.h
/usr/local/include/graphviz/color.h
/usr/local/include/graphviz/geom.h
/usr/local/include/graphviz/graphviz_version.h
/usr/local/include/graphviz/gvc.h
/usr/local/include/graphviz/gvcext.h
/usr/local/include/graphviz/gvcjob.h
/usr/local/include/graphviz/gvcommon.h
/usr/local/include/graphviz/gvconfig.h
/usr/local/include/graphviz/gvplugin.h
/usr/local/include/graphviz/gvplugin_device.h
/usr/local/include/graphviz/gvplugin_layout.h
/usr/local/include/graphviz/gvplugin_loadimage.h
/usr/local/include/graphviz/gvplugin_render.h
/usr/local/include/graphviz/gvplugin_textlayout.h
/usr/local/include/graphviz/gvpr.h
/usr/local/include/graphviz/pack.h
/usr/local/include/graphviz/pathgeom.h
/usr/local/include/graphviz/pathplan.h
/usr/local/include/graphviz/textspan.h
/usr/local/include/graphviz/types.h
/usr/local/include/graphviz/usershape.h
/usr/local/include/graphviz/xdot.h
/usr/local/include/gtest/gtest-death-test.h
/usr/local/include/gtest/gtest-message.h
/usr/local/include/gtest/gtest-param-test.h
/usr/local/include/gtest/gtest-printers.h
/usr/local/include/gtest/gtest-spi.h
/usr/local/include/gtest/gtest-test-part.h
/usr/local/include/gtest/gtest-typed-test.h
/usr/local/include/gtest/gtest.h
/usr/local/include/gtest/gtest_pred_impl.h
/usr/local/include/gtest/gtest_prod.h
/usr/local/include/gtest/internal/custom/gtest-port.h
/usr/local/include/gtest/internal/custom/gtest-printers.h
/usr/local/include/gtest/internal/custom/gtest.h
/usr/local/include/gtest/internal/gtest-death-test-internal.h
/usr/local/include/gtest/internal/gtest-filepath.h
/usr/local/include/gtest/internal/gtest-internal.h
/usr/local/include/gtest/internal/gtest-linked_ptr.h
/usr/local/include/gtest/internal/gtest-param-util-generated.h
/usr/local/include/gtest/internal/gtest-param-util.h
/usr/local/include/gtest/internal/gtest-port-arch.h
/usr/local/include/gtest/internal/gtest-port.h
/usr/local/include/gtest/internal/gtest-string.h
/usr/local/include/gtest/internal/gtest-tuple.h
/usr/local/include/gtest/internal/gtest-type-util.h
/usr/local/include/itcl.h
/usr/local/include/itcl2TclOO.h
/usr/local/include/itclDecls.h
/usr/local/include/itclInt.h
/usr/local/include/itclIntDecls.h
/usr/local/include/itclMigrate2TclCore.h
/usr/local/include/itclTclIntStubsFcn.h
/usr/local/include/libavcodec/old_codec_ids.h
/usr/local/include/libavfilter/asrc_abuffer.h
/usr/local/include/libavfilter/avcodec.h
/usr/local/include/libavutil/audioconvert.h
/usr/local/include/libavutil/old_pix_fmts.h
/usr/local/include/libfirm/adt/array.h
/usr/local/include/libfirm/adt/bipartite.h
/usr/local/include/libfirm/adt/funcattr.h
/usr/local/include/libfirm/adt/gaussjordan.h
/usr/local/include/libfirm/adt/gaussseidel.h
/usr/local/include/libfirm/adt/hashptr.h
/usr/local/include/libfirm/adt/hungarian.h
/usr/local/include/libfirm/adt/list.h
/usr/local/include/libfirm/adt/obst.h
/usr/local/include/libfirm/adt/obstack.h
/usr/local/include/libfirm/adt/pmap.h
/usr/local/include/libfirm/adt/pqueue.h
/usr/local/include/libfirm/adt/pset.h
/usr/local/include/libfirm/adt/set.h
/usr/local/include/libfirm/adt/unionfind.h
/usr/local/include/libfirm/adt/xmalloc.h
/usr/local/include/libfirm/analyze_irg_args.h
/usr/local/include/libfirm/be.h
/usr/local/include/libfirm/begin.h
/usr/local/include/libfirm/callgraph.h
/usr/local/include/libfirm/cdep.h
/usr/local/include/libfirm/cgana.h
/usr/local/include/libfirm/dbginfo.h
/usr/local/include/libfirm/end.h
/usr/local/include/libfirm/execfreq.h
/usr/local/include/libfirm/firm.h
/usr/local/include/libfirm/firm_common.h
/usr/local/include/libfirm/firm_types.h
/usr/local/include/libfirm/heights.h
/usr/local/include/libfirm/ident.h
/usr/local/include/libfirm/ircgopt.h
/usr/local/include/libfirm/ircons.h
/usr/local/include/libfirm/irconsconfirm.h
/usr/local/include/libfirm/irdom.h
/usr/local/include/libfirm/irdump.h
/usr/local/include/libfirm/iredgekinds.h
/usr/local/include/libfirm/iredges.h
/usr/local/include/libfirm/irflag.h
/usr/local/include/libfirm/irgmod.h
/usr/local/include/libfirm/irgopt.h
/usr/local/include/libfirm/irgraph.h
/usr/local/include/libfirm/irgwalk.h
/usr/local/include/libfirm/irio.h
/usr/local/include/libfirm/irloop.h
/usr/local/include/libfirm/irmemory.h
/usr/local/include/libfirm/irmode.h
/usr/local/include/libfirm/irnode.h
/usr/local/include/libfirm/irop.h
/usr/local/include/libfirm/iropt.h
/usr/local/include/libfirm/iroptimize.h
/usr/local/include/libfirm/irouts.h
/usr/local/include/libfirm/irprintf.h
/usr/local/include/libfirm/irprog.h
/usr/local/include/libfirm/irverify.h
/usr/local/include/libfirm/jit.h
/usr/local/include/libfirm/lowering.h
/usr/local/include/libfirm/nodes.h
/usr/local/include/libfirm/statev.h
/usr/local/include/libfirm/target.h
/usr/local/include/libfirm/timing.h
/usr/local/include/libfirm/tv.h
/usr/local/include/libfirm/typerep.h
/usr/local/include/libfirm/vrp.h
/usr/local/include/libserialport.h
/usr/local/include/mysqlStubs.h
/usr/local/include/odbcStubs.h
/usr/local/include/plugin-api.h
/usr/local/include/pqStubs.h
/usr/local/include/serial/serial.h
/usr/local/include/serial/v8stdint.h
/usr/local/include/stb/stb.h
/usr/local/include/stb/stb_c_lexer.h
/usr/local/include/stb/stb_divide.h
/usr/local/include/stb/stb_dxt.h
/usr/local/include/stb/stb_easy_font.h
/usr/local/include/stb/stb_herringbone_wang_tile.h
/usr/local/include/stb/stb_image.h
/usr/local/include/stb/stb_image_resize.h
/usr/local/include/stb/stb_image_write.h
/usr/local/include/stb/stb_leakcheck.h
/usr/local/include/stb/stb_perlin.h
/usr/local/include/stb/stb_rect_pack.h
/usr/local/include/stb/stb_textedit.h
/usr/local/include/stb/stb_tilemap_editor.h
/usr/local/include/stb/stb_truetype.h
/usr/local/include/stb/stb_voxel_render.h
/usr/local/include/stb/stretchy_buffer.h
/usr/local/include/symcat.h
/usr/local/include/tcl.h
/usr/local/include/tclDecls.h
/usr/local/include/tclOO.h
/usr/local/include/tclOODecls.h
/usr/local/include/tclPlatDecls.h
/usr/local/include/tclThread.h
/usr/local/include/tclTomMath.h
/usr/local/include/tclTomMathDecls.h
/usr/local/include/tdbc.h
/usr/local/include/tdbcDecls.h
/usr/local/include/tdbcInt.h
/usr/local/include/tinystl/allocator.h
/usr/local/include/tinystl/buffer.h
/usr/local/include/tinystl/hash.h
/usr/local/include/tinystl/hash_base.h
/usr/local/include/tinystl/new.h
/usr/local/include/tinystl/stddef.h
/usr/local/include/tinystl/string.h
/usr/local/include/tinystl/traits.h
/usr/local/include/tinystl/unordered_map.h
/usr/local/include/tinystl/unordered_set.h
/usr/local/include/tinystl/vector.h
/usr/local/include/tk.h
/usr/local/include/tkDecls.h
/usr/local/include/tkIntXlibDecls.h
/usr/local/include/tkMacOSX.h
/usr/local/include/tkPlatDecls.h
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libbfd.la
/usr/local/lib/libepeg.la
/usr/local/lib/libopcodes.la
/usr/local/lib/libserialport.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/catkin.pc
/usr/local/lib/pkgconfig/epeg.pc
/usr/local/lib/pkgconfig/libcdt.pc
/usr/local/lib/pkgconfig/libcgraph.pc
/usr/local/lib/pkgconfig/libgvc.pc
/usr/local/lib/pkgconfig/libgvpr.pc
/usr/local/lib/pkgconfig/liblab_gamut.pc
/usr/local/lib/pkgconfig/libpathplan.pc
/usr/local/lib/pkgconfig/libserialport.pc
/usr/local/lib/pkgconfig/libxdot.pc
/usr/local/lib/pkgconfig/tcl.pc
/usr/local/lib/pkgconfig/tk.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libbfd.a
/usr/local/lib/libbgfx.a
/usr/local/lib/libepeg.a
/usr/local/lib/libfirm.a
/usr/local/lib/libgmock.a
/usr/local/lib/libgmock_main.a
/usr/local/lib/libgtest.a
/usr/local/lib/libgtest_main.a
/usr/local/lib/libopcodes.a
/usr/local/lib/libserialport.a
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
gtest
maven
ninja
python
Warning: Your Xcode (8.3.3) is outdated.
Please update to Xcode 9.2 (or delete it).
Xcode can be updated from the App Store.
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/bin/apm
/usr/local/bin/atom
/usr/local/bin/forever
/usr/local/etc/bash_completion.d/_brew_services
/usr/local/etc/bash_completion.d/brew_bash_completion.sh
/usr/local/lib/liballegro 2.dylib
/usr/local/share/doc/ghc
/usr/local/share/man/man3/npm-bin.3
/usr/local/share/man/man3/npm-bugs.3
/usr/local/share/man/man3/npm-cache.3
/usr/local/share/man/man3/npm-commands.3
/usr/local/share/man/man3/npm-config.3
/usr/local/share/man/man3/npm-deprecate.3
/usr/local/share/man/man3/npm-docs.3
/usr/local/share/man/man3/npm-edit.3
/usr/local/share/man/man3/npm-explore.3
/usr/local/share/man/man3/npm-help-search.3
/usr/local/share/man/man3/npm-init.3
/usr/local/share/man/man3/npm-install.3
/usr/local/share/man/man3/npm-link.3
/usr/local/share/man/man3/npm-load.3
/usr/local/share/man/man3/npm-ls.3
/usr/local/share/man/man3/npm-outdated.3
/usr/local/share/man/man3/npm-owner.3
/usr/local/share/man/man3/npm-pack.3
/usr/local/share/man/man3/npm-prefix.3
/usr/local/share/man/man3/npm-prune.3
/usr/local/share/man/man3/npm-publish.3
/usr/local/share/man/man3/npm-rebuild.3
/usr/local/share/man/man3/npm-repo.3
/usr/local/share/man/man3/npm-restart.3
/usr/local/share/man/man3/npm-root.3
/usr/local/share/man/man3/npm-run-script.3
/usr/local/share/man/man3/npm-search.3
/usr/local/share/man/man3/npm-shrinkwrap.3
/usr/local/share/man/man3/npm-start.3
/usr/local/share/man/man3/npm-stop.3
/usr/local/share/man/man3/npm-submodule.3
/usr/local/share/man/man3/npm-tag.3
/usr/local/share/man/man3/npm-test.3
/usr/local/share/man/man3/npm-uninstall.3
/usr/local/share/man/man3/npm-unpublish.3
/usr/local/share/man/man3/npm-update.3
/usr/local/share/man/man3/npm-version.3
/usr/local/share/man/man3/npm-view.3
/usr/local/share/man/man3/npm-whoami.3
/usr/local/share/man/man3/npm.3
/usr/local/opt/bash-completion
/usr/local/opt/bfg
/usr/local/opt/binutils
/usr/local/opt/binwalk
/usr/local/opt/cifer
/usr/local/opt/cloog
/usr/local/opt/cppcheck
/usr/local/opt/dex2jar
/usr/local/opt/dns2tcp
/usr/local/opt/fcrackzip
/usr/local/opt/foremost
/usr/local/opt/gcc
/usr/local/opt/gnu-sed
/usr/local/opt/gradle
/usr/local/opt/hashpump
/usr/local/opt/hydra
/usr/local/opt/isl
/usr/local/opt/john
/usr/local/opt/knock
/usr/local/opt/libdnet
/usr/local/opt/libgpg-error
/usr/local/opt/libidn
/usr/local/opt/libksba
/usr/local/opt/lynx
/usr/local/opt/moreutils
/usr/local/opt/mysql
/usr/local/opt/narwhal
/usr/local/opt/neko
/usr/local/opt/nmap
/usr/local/opt/openssh
/usr/local/opt/p7zip
/usr/local/opt/pigz
/usr/local/opt/pngcheck
/usr/local/opt/pv
/usr/local/opt/pyside
/usr/local/opt/rhino
/usr/local/opt/ringojs
/usr/local/opt/screen
/usr/local/opt/sfnt2woff
/usr/local/opt/sfnt2woff-zopfli
/usr/local/opt/shiboken
/usr/local/opt/socat
/usr/local/opt/speedtest_cli
/usr/local/opt/sqlmap
/usr/local/opt/ssdeep
/usr/local/opt/swig
/usr/local/opt/tcpreplay
/usr/local/opt/tcptrace
/usr/local/opt/ucspi-tcp
/usr/local/opt/unixodbc
/usr/local/opt/woff2
/usr/local/opt/zlib
Warning: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
brew install emacs fribidi graphviz qt
Run `brew missing` for more details.
It appears the error is related to the terminated reinstallation process:
To reproduce, I believe you have to install, do a reinstall, and terminate then - I terminated during the pouring process.
Brew suggests you terminate the in-progress operation, but there is none.
The only 'solution' that exists is to uninstall and reinstall, which is frustrating. There should be a command that ignores the re-installation artifacts and just removes the formula altogether.