mxcl/homebrew — Issue #10110: v8 fails to install
Author: kowey
Created: 2012-02-11 18:00:31+00:00
State: open

$ brew install v8 --debug
==> Downloading https://github.com/v8/v8/tarball/3.8.9
==> scons -j 4 arch=x64 mode=release snapshot=on library=shared visibility=default console=readline sample=shell
==> install_name_tool -change libv8.dylib /usr/local/Cellar/v8/3.8.9/lib/libv8.dylib /usr/local/Cellar/v8/3.8.9/bin/v8
install_name_tool: more than one input file specified (/usr/local/Cellar/v8/3.8.9/lib/libv8.dylib and -change libv8.dylib)
Usage: install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input

This is on OS X 10.7.2 with an update homebrew.

brew doctor does complain, but I imagine it's not related:

==> /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.
Some "config" scripts were found in your path, but not in system or Homebrew folders.

`./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.

/usr/local/MacGPG2/bin
gpg-error-config ksba-config libassuan-config libgcrypt-config libusb-config pth-config