Skip to content

Instantly share code, notes, and snippets.

@jlieske
Created November 24, 2011 20:46
Show Gist options
  • Save jlieske/1392249 to your computer and use it in GitHub Desktop.
Save jlieske/1392249 to your computer and use it in GitHub Desktop.
Failure in `brew upgrade`
sudo -u admin brew upgrade
Error: undefined method `include?' for nil:NilClass
Please report this bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
/Library/Homebrew/Library/Homebrew/formula.rb:393:in `canonical_name'
/Library/Homebrew/Library/Homebrew/formula.rb:425:in `factory'
/Library/Homebrew/Library/Contributions/examples/brew-upgrade.rb:7
/Library/Homebrew/Library/Contributions/examples/brew-upgrade.rb:7:in `map'
/Library/Homebrew/Library/Contributions/examples/brew-upgrade.rb:7
/usr/local/bin/brew:47:in `require'
/usr/local/bin/brew:47:in `require?'
/usr/local/bin/brew:80
sudo -u admin brew doctor
/usr/bin/gcc
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/libcdt.4.dylib
/usr/local/lib/libcgraph.5.dylib
/usr/local/lib/libexif.12.2.1.dylib
/usr/local/lib/libgraph.4.dylib
/usr/local/lib/libgvc.5.dylib
/usr/local/lib/libgvpr.1.dylib
/usr/local/lib/libiovmall.dylib
/usr/local/lib/libpathplan.4.dylib
/usr/local/lib/libpopt.0.0.0.dylib
/usr/local/lib/libprofile_rt.dylib
/usr/local/lib/libsgml.dylib
/usr/local/lib/libxdot.4.dylib
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/libexif.a
/usr/local/lib/libiovmall.a
/usr/local/lib/libplugin_llvmc_Base.a
/usr/local/lib/libplugin_llvmc_Clang.a
/usr/local/lib/libpopt.a
/usr/local/lib/libsgml.a
/usr/local/lib/libUnitTestMain.a
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/libcdt.pc
/usr/local/lib/pkgconfig/libcgraph.pc
/usr/local/lib/pkgconfig/libexif.pc
/usr/local/lib/pkgconfig/libgraph.pc
/usr/local/lib/pkgconfig/libgvc.pc
/usr/local/lib/pkgconfig/libgvpr.pc
/usr/local/lib/pkgconfig/libpathplan.pc
/usr/local/lib/pkgconfig/libxdot.pc
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/libcdt.la
/usr/local/lib/libcgraph.la
/usr/local/lib/libexif.la
/usr/local/lib/libgraph.la
/usr/local/lib/libgvc.la
/usr/local/lib/libgvpr.la
/usr/local/lib/libpathplan.la
/usr/local/lib/libpopt.la
/usr/local/lib/libxdot.la
Your gcc 4.2.x version is older than the recommended version. It may be advisable
to upgrade to the latest release of Xcode.
You have Macports or Fink installed. This can cause trouble.
You don't have to uninstall them, but you may like to try temporarily
moving them away, eg.
sudo mv /opt/local ~/macports
==> /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. This is an issue if you eg. brew installed Python.
Consider editing your .bashrc to put:
/usr/local/bin
ahead of /usr/bin in your $PATH.
You have a non-brew 'pkg-config' in your PATH:
/usr/bin/pkg-config
`./configure` may have problems finding brew-installed packages using
this other pkg-config.
Your pkg-config is not checking "/usr/X11/lib/pkgconfig" for packages.
Earlier versions of the pkg-config formula did not add this path
to the search path, which means that other formula may not be able
to find certain dependencies.
To resolve this issue, re-brew pkg-config with:
brew rm pkg-config && brew install pkg-config
/Library/Frameworks/Mono.framework detected
This can be picked up by Cmake's build system and likely cause the
build to fail, finding improper header files for libpng for instance.
==> You have uncommitted modifications to Homebrew's core.
Unless you know what you are doing, you should: git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment