Skip to content

Instantly share code, notes, and snippets.

@heuermh
Created September 2, 2014 17:25
Show Gist options
  • Save heuermh/4a7819a73b9d0643d263 to your computer and use it in GitHub Desktop.
Save heuermh/4a7819a73b9d0643d263 to your computer and use it in GitHub Desktop.
Homebrew issue #32046
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 42050a0039b83f34b0793d60f7bb70f4a98d7229
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.9.4-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
GCC-4.2: build 5666
Clang: 5.1 build 503
X11: 2.7.6 => /opt/X11
System Ruby: 2.0.0-451
Perl: /Users/mheuer/perl5/perlbrew/perls/perl-5.19.10/bin/perl => /Users/mheuer/perl5/perlbrew/perls/perl-5.19.10/bin/perl5.19.10
Python: /usr/bin/python
Ruby: /usr/bin/ruby
$ 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: "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:
/usr/local/MacGPG2/bin/gpg-error-config
/usr/local/MacGPG2/bin/ksba-config
/usr/local/MacGPG2/bin/libassuan-config
/usr/local/MacGPG2/bin/libgcrypt-config
/usr/local/MacGPG2/bin/libusb-config
/usr/local/MacGPG2/bin/pth-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/libpandaseq-sam.1.dylib
/usr/local/lib/libpandaseq.3.dylib
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/libpandaseq-sam.la
/usr/local/lib/libpandaseq.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/pandaseq-2.pc
/usr/local/lib/pkgconfig/pandaseq-sam-1.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/libpandaseq-sam.a
/usr/local/lib/libpandaseq.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:
ruby193
Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
echo export PATH='/usr/local/sbin:$PATH' >> ~/.bash_profile
$ brew upgrade
==> Upgrading ruby193
==> Downloading http://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p547.tar.bz2
Already downloaded: /Library/Caches/Homebrew/ruby193-1.9.3-p547.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/ruby193/1.9.3-p547_1 --enable-shared --disable-tcltk-framework --with-out-ext=tcl --with-out-ext=tk --disable-install-doc
==> make
==> make install
==> Caveats
NOTE: By default, gem installed binaries will be placed into:
/usr/local/opt/ruby193/bin
You may want to add this to your PATH.
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/ruby/gems
Target /usr/local/lib/ruby/gems
already exists. You may want to remove it:
rm /usr/local/lib/ruby/gems
To force the link and overwrite all conflicting files:
brew link --overwrite ruby193
To list all files that would be deleted:
brew link --overwrite --dry-run ruby193
Possible conflicting files are:
/usr/local/lib/ruby/gems
/usr/local/lib/ruby/site_ruby
/usr/local/lib/ruby/vendor_ruby
==> Summary
🍺 /usr/local/Cellar/ruby193/1.9.3-p547_1: 750 files, 16M, built in 118 seconds
$ brew link --overwrite --dry-run ruby193
Would remove:
/usr/local/lib/ruby/gems
/usr/local/lib/ruby/site_ruby
/usr/local/lib/ruby/vendor_ruby
$ brew link --overwrite ruby193
Linking /usr/local/Cellar/ruby193/1.9.3-p547...
Error: Keg::LinkError
$ brew link --overwrite ruby193 --verbose
Linking /usr/local/Cellar/ruby193/1.9.3-p547...
ln -s ../Cellar/ruby193/1.9.3-p547/bin/erb erb
ln -s ../Cellar/ruby193/1.9.3-p547/bin/gem gem
ln -s ../Cellar/ruby193/1.9.3-p547/bin/irb irb
ln -s ../Cellar/ruby193/1.9.3-p547/bin/kramdown kramdown
ln -s ../Cellar/ruby193/1.9.3-p547/bin/markdown2confluence markdown2confluence
ln -s ../Cellar/ruby193/1.9.3-p547/bin/nokogiri nokogiri
ln -s ../Cellar/ruby193/1.9.3-p547/bin/rake rake
ln -s ../Cellar/ruby193/1.9.3-p547/bin/rdoc rdoc
ln -s ../Cellar/ruby193/1.9.3-p547/bin/ri ri
ln -s ../Cellar/ruby193/1.9.3-p547/bin/ruby ruby
ln -s ../Cellar/ruby193/1.9.3-p547/bin/testrb testrb
ln -s ../Cellar/ruby193/1.9.3-p547/include/ruby-1.9.1 ruby-1.9.1
ln -s ../../../Cellar/ruby193/1.9.3-p547/share/man/man1/erb.1 erb.1
ln -s ../../../Cellar/ruby193/1.9.3-p547/share/man/man1/irb.1 irb.1
ln -s ../../../Cellar/ruby193/1.9.3-p547/share/man/man1/rake.1 rake.1
ln -s ../../../Cellar/ruby193/1.9.3-p547/share/man/man1/ri.1 ri.1
ln -s ../../../Cellar/ruby193/1.9.3-p547/share/man/man1/ruby.1 ruby.1
ln -s ../Cellar/ruby193/1.9.3-p547/lib/libruby.1.9.1-static.a libruby.1.9.1-static.a
ln -s ../Cellar/ruby193/1.9.3-p547/lib/libruby.1.9.1.dylib libruby.1.9.1.dylib
ln -s ../Cellar/ruby193/1.9.3-p547/lib/libruby.1.9.dylib libruby.1.9.dylib
ln -s ../Cellar/ruby193/1.9.3-p547/lib/libruby.dylib libruby.dylib
ln -s ../../Cellar/ruby193/1.9.3-p547/lib/pkgconfig/ruby-1.9.pc ruby-1.9.pc
ln -s ../../Cellar/ruby193/1.9.3-p547/lib/ruby/1.9.1 1.9.1
rm /usr/local/bin/erb
rm /usr/local/bin/gem
rm /usr/local/bin/irb
rm /usr/local/bin/kramdown
rm /usr/local/bin/markdown2confluence
rm /usr/local/bin/nokogiri
rm /usr/local/bin/rake
rm /usr/local/bin/rdoc
rm /usr/local/bin/ri
rm /usr/local/bin/ruby
rm /usr/local/bin/testrb
rm /usr/local/include/ruby-1.9.1
rm /usr/local/lib/libruby.1.9.1-static.a
rm /usr/local/lib/libruby.1.9.1.dylib
rm /usr/local/lib/libruby.1.9.dylib
rm /usr/local/lib/libruby.dylib
rm /usr/local/lib/pkgconfig/ruby-1.9.pc
rm /usr/local/lib/ruby/1.9.1
rm /usr/local/share/man/man1/erb.1
rm /usr/local/share/man/man1/irb.1
rm /usr/local/share/man/man1/rake.1
rm /usr/local/share/man/man1/ri.1
rm /usr/local/share/man/man1/ruby.1
Error: Keg::LinkError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment