« Rails 2.3.*, Gems, and Bundler. The uninitialized constant Rails::Railtie error | Main | CouchDB makes a great data cache (with help from Ruby) »
Friday
Apr302010

Problem installing git using homebrew

I finally got to the bottom of my git install issue using homebrew.

If you’re not familiar with homebrew it’s a package manager (sort of) for OS X but all the “packages” are built on your machine. It’s really a scripted installer written in Ruby. Here’s a link to a more thorough explanation: Homebrew post on EngineYard.com

Homebrew is great, and I’ve been using it for all of my new installs but I was having problems installing git. I kept getting this error using this command: sudo brew install -v git <= the ‘-v’ is for verbose output

In file included from /usr/local/include/curl/curl.h:36,
                 from http.h:6,
                 from remote-curl.c:5:
/usr/local/include/curl/curlrules.h:134: error: size of array ‘__curl_rule_01__’ is negative
make: *** [remote-curl.o] Error 1

Some backstory: I am on snow leopard but that is relatively recent. After making the transition a few weeks ago I had countless errors with the whole 32/64-bit architecture thing. What I realized in this instance was that since I had compiled curl from source when I was on leopard I needed to recompile. (I’ve had to recompile/reinstall just about everything after the upgrade (postgres, ruby, erlang, etc…)). Turns out, after downloading the latest curl, and compiling/installing it from source. I was able to install git using homebrew without a problem.

Note: I am not sure this is a git specific issue when installing with homebrew. It could be a general issue with homebrew and my system as homebrew uses curl/libcurl to get files and such. I suspect that this would have happened for any homebrew install but I have no evidence to back that up.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>