librelist archives

« back to archive

Cascade Failure: Postgres w/o 'contrib,' and git denies 'pull.'

Cascade Failure: Postgres w/o 'contrib,' and git denies 'pull.'

From:
Dave Howell
Date:
2011-02-01 @ 03:28
could not decode message

Re: [homebrew] Cascade Failure: Postgres w/o 'contrib, ' and git denies 'pull.'

From:
Mike McQuaid
Date:
2011-02-01 @ 08:15
On 1 February 2011 03:28, Dave Howell <dh@grandfenwick.net> wrote:
> git: 'pull' is not a git command. See 'git --help'.
> Did you mean this?

Sounds like git is badly broken. Try uninstalling and reinstalling it
if running `brew link git` doesn't work.

-- 
Mike McQuaid
http://mikemcquaid.com

Re: [homebrew] Cascade Failure: Postgres w/o 'contrib, ' and git denies 'pull.'

From:
Dave Howell
Date:
2011-02-01 @ 10:26
On Feb 1, 2011, at 0:15 , Mike McQuaid wrote:
> Sounds like git is badly broken. Try uninstalling and reinstalling it
> if running `brew link git` doesn't work.

I'm guessing this counts as "doesn't work"...

	$ brew link git
	Error: git is not installed


Of course, since I've been getting error messages from git, it obviously 
IS installed. But I'm willing to play along, so I asked Homebrew to 
install git. 

	. . .
	/library/homebrew/Cellar/git/1.7.1.1: 916 files, 18M, built in 90 seconds

Hmm! OK . . . .

	$ brew link git
	1370 links created for /library/homebrew/Cellar/git/1.7.1.1

	$ brew update
	remote: Counting objects: 11659, done.
	remote: Compressing objects: 100% (4525/4525), done.
	remote: Total 10876 (delta 7693), reused 8263 (delta 6114)
	Receiving objects: 100% (10876/10876), 1.52 MiB | 150 KiB/s, done.
	Resolving deltas: 100% (7693/7693), completed with 561 local objects.
	From http://github.com/mxcl/homebrew
	 * branch            master     -> FETCH_HEAD
	Updated Homebrew from 34084a0b to a431d6d3.

Well, THAT seems promising. Although the "old" git was in 
/Library/usr/local/git/bin/git, so I cannot imagine than anything other 
than Homebrew put it there.  Time to move on to my original problem: the 
fact that Homebrew installed Postgres 8.4.4 and somehow forgot to include 
the 'contrib' directory, which contains some code I need to have 
installed.

	$ brew install postgresql

Oh, crap, I'm getting 9.0.2. I'll just cross my fingers and hope the 9.0.2
install doesn't pour sugar into my 8.4.4's gas tank. (Yes, of course it's 
supposed to install in a separate directory and support simultaneous 
invocations of both versions. That's what I was told about 8.3.x and 
8.4.x. But when I let Aptitude 'upgrade' PostgreSQL on my Ubuntu box, it 
nevertheless managed to damage my 8.3 Postgres so badly I couldn't even 
recover my databases, and connections from other machines all over my 
network started failing, I had to move everything on the net to 8.4, and 
reinstall the data from backups.

And, as I've documented elsewhere, Homebrew isn't building Postgres as a 
universal binary, and I've lost an entire work week's worth of time to 
dealing with Ruby, Postgres, and OSX bitching and pointing fingers at each
other because of it. In the end, I had to rewrite the Homebrew formula 
repeatedly, running it multiple times and stealing the results away, then 
bonding all the binaries and libraries together by hand, to create the 
32-bit/64-bit binaries required to use Postgres AND be able to access OSA 
on 10.6 from Ruby at the same time.)

I am NOT 'upgrading' to 9.0.2. But maybe I'll get a "contrib" folder that 
I can bring back to 8.4.4. 

Oh. Nope! 

	Error: Failure while executing: make install 

{sigh}

It suggests I report the problem, but the Homebrew site (fairly 
reasonably) wants me to check a few common problem-causers first. So now 
I'm not sure what to do. "brew doctor" has chastised me for having some 
non-Homebrew-installed stuff in /usr/local:

	Warning: Unbrewed dylibs were found in /usr/local/lib 
	You have unbrewed dylibs in /usr/local/lib. 
	If you didn't put them there on purpose, they could cause problems when 
building Homebrew formulae. 
	Unexpected dylibs (delete if they are no longer needed): 
		/usr/local/lib/libfontforge.1.0.0.dylib 
		/usr/local/lib/libgdraw.3.0.0.dylib 
		/usr/local/lib/libgunicode.3.0.0.dylib 
		/usr/local/lib/libgutils.1.0.0.dylib 

Do I know if they're no longer needed? I do not. However, it's a clean 
install of 10.6, so those are probably there for something I needed very 
recently, and very badly. More to the point, Homebrew is NOT allowed to 
install in my /usr/local, which I have very deliberately left owned by 
root. I never install *anything* with 'sudo' the first time around. If it 
fails with a permissions error, then I know that it's trying to shove crap
where I don't want it: to whit, in a directory that isn't visible from the
GUI. I *hate* that. Only if I can't live without something, AND I cannot 
shove it over to /Library/usr/* where I want it, do I let it dump crap 
into /usr/*. Homebrew, being far more humble than the other package 
installers, actually pays attention when I tell it where to put stuff. 

But, even if Homebrew's Postgres formula is no more useful to me than 
before, at least Homebrew itself is working again, which is a good thing. 
Thanks, Mike

Re: [homebrew] Cascade Failure: Postgres w/o 'contrib, ' and git denies 'pull.'

From:
Mike McQuaid
Date:
2011-02-01 @ 11:19
On 1 February 2011 10:26, Dave Howell <dh@grandfenwick.net> wrote:
> But, even if Homebrew's Postgres formula is no more useful to me than 
before, at least Homebrew itself is working again, which is a good thing.

Glad to be of help.

-- 
Mike McQuaid
http://mikemcquaid.com