Closed MPV closed 12 years ago
I tried asking the doctor but he was not happy. Where do I even begin?
$ brew doctor
Warning: The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the
"InstantOn" component of Airfoil are known to do this.
You should probably change the ownership and permissions of /usr/local
back to your user account.
Warning: You have Xcode 4.1, which is outdated.
Please install Xcode 4.3.
Warning: Your Homebrew is outdated
You haven't updated for at least 24 hours, this is a long time in brewland!
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/libmacfuse_i32.2.dylib /usr/local/lib/libmacfuse_i64.2.dylib /usr/local/lib/libosxfuse_i32.2.dylib /usr/local/lib/libosxfuse_i64.2.dylib /usr/local/lib/libusb-0.1.4.4.4.dylib /usr/local/lib/libusbpp-0.1.4.4.4.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/libosxfuse_i32.la /usr/local/lib/libosxfuse_i64.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/osxfuse.pc
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.
a52dec
aalib
atk
cdparanoia
check
cmake
dirac
flac
gdk-pixbuf
git
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gstreamer
gtk+
jansson
jasper
lame
libcaca
libcdio
libdv
libdvdcss
libdvdread
libevent
libmms
libmpdclient
libmpeg2
libogg
liboil
libshout
libtiff
libvorbis
mad
mcrypt
mpc
mtr
mysql
orc
pango
php
pidof
pkg-config
popt
sdl
speex
sqlite
taglib
theora
tree
two-lame
wget
xdebug
Warning: You have uncommitted modifications to Homebrew's core.
Unless you know what you are doing, you should run:
cd /usr/local && git reset --hard
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install xz pixman cairo yasm x264
Run `brew missing` for more details.
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
git
git-cvsserver
git-receive-pack
git-shell
git-upload-archive
git-upload-pack
gitk
sqlite3
svn
svnadmin
svndumpfilter
svnlook
svnserve
svnsync
svnversion
Consider ammending your PATH so that /usr/local/bin
is ahead of /usr/bin in your PATH.
Warning: Homebrew's sbin was not found in your path.
Consider ammending your PATH variable so it contains:
/usr/local/sbin
Oh, and here is the brew env & config:
$ brew --env ; brew --config
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -w -pipe -march=core2 -msse4.1
CXXFLAGS: -O3 -w -pipe -march=core2 -msse4.1
MAKEFLAGS: -j2
HOMEBREW_VERSION: 0.8.1
HEAD: c3bf616a3d46a6ca72c03db3517dd53d92250511
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: dual-core 64-bit penryn
OS X: 10.7.3
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
Clang: 2.1 build 163
MacPorts or Fink? false
X11 installed? true
Solved by running:
cd `brew --prefix`
git remote add origin https://github.com/mxcl/homebrew.git
git fetch origin
git reset --hard origin/master
MPV - Awesome solution.
MVP clap clap !
@MPV worked nicely. Thanks :-)
Some kind of 'brew update --force' would be very helpful. It would perform exactly this code.
Agreed @alcarvalho ... the non-existant 'brew update --force' is exactly what I tried before googling.
Thanks for the tip @MPV!
@MPV It works! thank you :-)
THANK YOU MPV! I have been trying to resolve this for days now!
Awesome
Yeah that did the trick. Awesome! Thanks for posting the solution.
thanks @MPV !!!!!
Thanks - worked also for me. :-)
Perfect, thanks @MPV!
Thank you!!!
Very nice solution! On a side note, I only had to do the following as my origin was already set correctly.
cd `brew --prefix`
git fetch origin
git reset --hard origin/master
I only mention this for posterity sake. For those of you who do not know this, you can check to see what your origin is currently set to with the following:
git remote show origin
Or simply look in your .git/config
file in the [remote "origin"]
section for the url
entry.
That said, it is just as easy to simply use the command from @MPV that I left out (git remote add origin https://github.com/mxcl/homebrew.git
) to just explicitly set it. As I mentioned before, I only wrote this out to help those who care to understand more about this, so I hope it helps someone!
@MPV Thanks! Works like a charm!
Whilst the solution works, it's not a fix for the cause of the issue. So this continues to happen. Brew changes it's formula files locally for some reason.
I usually brew update whenever I remember probabaly about once a month, I have this issue or similar every time I brew update
The command gives up, surely it could just do this internally without user having to return to this thread everytime.
Thank you for clearing this up.
Thanks MPV, awesome solution
Thanks MPV
thanks @MPV!
fantastic!
nice
Another +1. Thanks @MPV!
Thanks @MVP. Worked perfectly...
Great! Thanks a lot!
Worked for me, thanks!
Thx MPV!
Could it be that you guys have a global .gitattributes
file that normalizes the line endings in those formulas or something?
Thanks ! :)
Thanks :)
Works! Thank you so much.
:+1:
thanks @MVP!
Thanks!
thanks MPV!
Thanks!
Lifesaver. Thanks!
same here thanks!!!
thanks
Thanks @MPV! Champion of my hour!
2 years later and this still saves me @MPV!
@MPV - SWEET THANKS :dancer:
@MPV nice, it helped me out!
also just:
cd `brew --prefix`; git reset --hard
@MPV...BIG thanks !!!
Hi, I am getting a message "Your local changes to the following files would be overwritten by merge: mod_python.rb Please commit your changes or stash them before you can merge. Aborting Error: Failed to update tap: homebrew/apache " Anyone have any idea how to fix this issue?
Scenario: i transferred my apps from mac Air to mac Pro using migration utility. then when i started getting some issue with homebrew, I uninstalled and reinstalled homebrew on my mac. every thing else seems to be good and working now but these brew update issue is stopping me from lot other things. can someone help?
@ajubayer cd $(brew --prefix); git fetch; git reset --hard origin/master
(at your own risk)
EDIT: The TLDR solution:
The story behind it:
Hi, Recently I started getting this output when I run "brew update". I can't recall having done anything special that would affect my homebrew installation.