Linking to wrong bin directory? #3

Closed
adamv opened this Issue Jul 31, 2009 · 3 comments

2 participants

@adamv

This issue might be because I have Homebrew setup weird on my machine, but here is what I'm seeing.

I have homebrew git-cloned into ~/homebrew.
I think have ~/homebrew/bin/brew linked to /usr/local/bin and Library and Cellar linked to /usr/local.
After the recent brew changes, when I "ln" a brew, the resulting executables are now linked into ~/homebrew/bin instead of /usr/local/bin

This is definitely a change from the previous behavior, as before things "just worked" and now they don't.

Personally I don't think homebrew should expect to be installed directly into /usr/local, (because I don't want to have a /usr/local/.git) but I don't know if you care to support my kind of linked alternate setup.

@adamv

HOMEBREW_PREFIX=Pathname.new(FILE).dirname.parent.parent.realpath

Probably the "realpath" part here is causing the problem for me, I want the apparent path (symlink) not the real path.

@adamv

Working after most recent commits, thanks.

@mxcl
Homebrew member

Yeah I definately want to support your setup. I originally had it setup just like you do, so certainly to start with I was very careful to make sure everything used relative paths and that. So tell me if it breaks again. I'll try to make a test for this.

@samueljohn samueljohn pushed a commit to samueljohn/homebrew that referenced this issue Oct 10, 2012
@staticfloat staticfloat New formula: libpng12
[jn: install test files to libexec and use mktemp; style nits]

Closes #3.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
178e1fd
@bfontaine bfontaine locked and limited conversation to collaborators Oct 10, 2015
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.