Installing Git on Dreamhost

Most of this is taken from this post.

However, that post had an error (for my account) so I did the following:

Make sure you replace < > with your dreamhost user name.

$mkdir ~/src
$ cd ~/src
$ wget http://www.kernel.org/pub/software/scm/git/git-1.5.4.rc4.tar.gz
$ tar xzf git-1.5.4.rc4.tar.gz
$ cd git-1.5.4.rc.tar.gz
$ ./configure –prefix=/home/< >/packages NO_CURL=1 NO_MMAP=1
$ make
$ make install
$ git –version

That should return:
git version 1.5.4.rc4

And then you have git on that machine.

The Conversation {6 comments}

  1. Matt Sanders {Wednesday July 29, 2009 @ 12:51 am}

    Great post! Thanks!

  2. Tom Davies {Tuesday August 4, 2009 @ 2:24 pm}

    thanks for this - really useful!

  3. Doug Hall {Saturday December 19, 2009 @ 11:24 pm}

    Thanks! Before they do git –version at the end, they need to update their PATH variable in .bash_profile:

    export PATH=/home//packages/libexec/git-core:$PATH

  4. Doug Hall {Saturday December 19, 2009 @ 11:30 pm}

    As a follow-up on my last post, above, the correct path will have your Dreamhost username between /home/ and /packages. The blogging software removed the brackets I put there to show that.

  5. mike {Tuesday January 19, 2010 @ 9:48 pm}

    . ~/.bash_profile too

  6. Al W. {Monday February 22, 2010 @ 9:40 pm}

Speak Your Peace

  • Comment Policy:Could go here if there's a nagging need Login Instructions: Would go here if there's a desire.