Skip to content

Instantly share code, notes, and snippets.

@jamesonquinn
Created January 18, 2017 17:03
Show Gist options
  • Save jamesonquinn/18d53ca955a872e49f7081b2551c3b8e to your computer and use it in GitHub Desktop.
Save jamesonquinn/18d53ca955a872e49f7081b2551c3b8e to your computer and use it in GitHub Desktop.
Brew doctor fails, "pathname contains null byte"
chema$ brew config
HOMEBREW_VERSION: 1.1.7-dirty
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 9cce3414fbd39d146d97911dbb3bf07fffaa1080
Last commit: 9 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a85897dc012ebb8a354c318ed94e2e23154977fc
Core tap last commit: 87 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit ivybridge
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.10.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.1.2_2/bin/ruby
Java: 1.8.0_77, 1.6.0_65-b14-468
macOS: 10.11.6-x86_64
Xcode: 8.2.1
CLT: 7.3.1.0.1.1461711523
X11: 2.7.11 => /opt/X11
Jamesons-MacBook-Pro-2:local chema$ 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: 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/libproj.0.dylib
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib
/usr/local/lib/libusb-1.0.0.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/fakemysql.h
/usr/local/include/fakepq.h
/usr/local/include/fakesql.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/mysqlStubs.h
/usr/local/include/odbcStubs.h
/usr/local/include/org_proj4_Projections.h
/usr/local/include/pqStubs.h
/usr/local/include/proj_api.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/tk.h
/usr/local/include/tkDecls.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/libproj.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/proj.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/libproj.a
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a
Error: pathname contains null byte
Please report this bug:
http://docs.brew.sh/Troubleshooting.html
/usr/local/Homebrew/Library/Homebrew/extend/pathname.rb:347:in `initialize'
/usr/local/Homebrew/Library/Homebrew/extend/pathname.rb:347:in `readlink'
/usr/local/Homebrew/Library/Homebrew/extend/pathname.rb:347:in `resolved_path'
/usr/local/Homebrew/Library/Homebrew/keg.rb:270:in `optlinked?'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:266:in `each'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:266:in `detect'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:266:in `from_rack'
/usr/local/Homebrew/Library/Homebrew/diagnostic.rb:1022:in `block in check_for_unlinked_but_not_keg_only'
/usr/local/Homebrew/Library/Homebrew/diagnostic.rb:1019:in `reject'
/usr/local/Homebrew/Library/Homebrew/diagnostic.rb:1019:in `check_for_unlinked_but_not_keg_only'
/usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:43:in `block in doctor'
/usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:35:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:35:in `doctor'
/usr/local/Homebrew/Library/Homebrew/brew.rb:94:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment