Errors in Homebrew on OS X Lion
I managed to get it up and running after much Googling and fiddling.
First, you need to make the directories writable using "chown".
sudo chown $(whoami) /usr/local/share/man/de
sudo chown $(whoami) /usr/local/share/man/de/man1
Then install Xcode 4.3 from the App Store, and install command line tools from Xcode->Preferences->Downloades->Components. Then set a valid path to Xcode 4.3.
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
There are some unexpected dylib and .pc files from GraphViz. It's probably safe to delete them directly but I chose to back them up instead in case other applications break. To back them up:
mkdir -p ~/brew-backup/lib/pkgconfig/
mv /usr/local/lib/*.*.dylib ~/brew-backup/lib/
mv /usr/local/lib/pkgconfig/*.pc ~/brew-backup/lib/pkgconfig/
Finally, amend the system PATH so that /usr/local/bin
appears ahead of other paths.
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
Check that there is no more error by running
brew doctor
Update brew
to keep package information up to date, and you're ready to go.
brew update
Definitely back up those dylib's and pc's. Not having them around breaks graphviz (especially the python bindings). Copy them back to their directories once you're all set.
If you forget to back them up, and graphiz stops working with "Image Not Found" errors on libraries, just reinstall the graphviz application from the website (http://www.graphviz.org/Download_macos.php).
It seems like the name of the game here is ignoring those particular brew doctor warnings.
I would "white list" the .dylib
files here:
nano +128 /usr/local/Library/Homebrew/cmd/doctor.rb
adding:
"libcdt.5.dylib",
"libcgraph.6.dylib",
"libgraph.5.dylib",
"libgvc.6.dylib",
"libgvpr.2.dylib",
"libpathplan.4.dylib",
"libxdot.4.dylib",
and the .pc
files here:
nano +163 /usr/local/Library/Homebrew/cmd/doctor.rb