Skip to content

Installing Git on Dreamhost

by Topper on April 8th, 2008

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.

7 Comments
  1. Great post! Thanks!

  2. Tom Davies permalink

    thanks for this – really useful!

  3. Doug Hall permalink

    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 permalink

    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 permalink

    . ~/.bash_profile too

  6. Al W. permalink

    good tutorial tips, get 1.7 here:

    http://kernel.org/pub/software/scm/git/git-1.7.0.tar.gz

  7. Thanks for the tutorial. Worked like a charm on 1.7.1 on my Dreamhost PS, but just remember to do the path export!

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS