Install git 1.6 from source on debian etch

Posted on in How-Tos, Linux

aptitude install build-essential gettext
wget http://kernel.org/pub/software/scm/git/git-1.6.0.1.tar.gz
tar xvzf git-1.6.0.1.tar.gz
cd git-1.6.0.1
./configure
make
make install
  • Tom

    Sometimes it just takes something simple like this showing the deps to make someone’s life a little easier. Thank you.

  • Tom

    Sometimes it just takes something simple like this showing the deps to make someone’s life a little easier. Thank you.

  • http://blog.merjis.com/ Jeremy Chatfield

    git is now up to version 1.6.0.3. Also, I needed zlib1g-dev to complete compilation. I ended up with:

    aptitude install build-essential gettext zlib1g-dev
    wget http://kernel.org/pub/software/scm/git/git-1.6.0.3.tar.gz
    tar xvzf git-1.6.0.3.tar.gz
    cd git-1.6.0.3
    ./configure
    make
    make install

  • http://blog.merjis.com/ Jeremy Chatfield

    git is now up to version 1.6.0.3. Also, I needed zlib1g-dev to complete compilation. I ended up with:

    aptitude install build-essential gettext zlib1g-dev
    wget http://kernel.org/pub/software/scm/git/git-1.6.0.3.tar.gz
    tar xvzf git-1.6.0.3.tar.gz
    cd git-1.6.0.3
    ./configure
    make
    make install
    
  • http://maff.ailoo.net/ Mathias

    Thanks for the info Jeremy :)

  • http://maff.ailoo.net/ Mathias

    Thanks for the info Jeremy :)

  • mafro

    I found that running the following command installed all the relevant dependencies for me to get git up and running on Debian Lenny:

    aptitude build-dep git-core

  • mafro

    I found that running the following command installed all the relevant dependencies for me to get git up and running on Debian Lenny:

    aptitude build-dep git-core

  • http://venlix.net venlix

    On a fresh Debian system I also needed to install the “zlibg1-dev” package.

    • http://maff.ailoo.net/ Mathias

      Thanks :)

  • http://venlix.net venlix

    On a fresh Debian system I also needed to install the “zlibg1-dev” package.

    • http://maff.ailoo.net/ Mathias

      Thanks :)

  • utyf

    Use checkinstall on Debian instead of “make install”, it’s better :)

    • http://maff.ailoo.net/ Mathias

      I rarely build software from source thanks to apt, but checkinstall looks nice indeed, thanks for the info :)

  • utyf

    Use checkinstall on Debian instead of “make install”, it’s better :)

    • http://maff.ailoo.net/ Mathias

      I rarely build software from source thanks to apt, but checkinstall looks nice indeed, thanks for the info :)

  • elmar

    Thanx a bunch!
    why does it need this line: aptitude install build-essential gettext

    I checked the man page of gettext. it is not really obvious to me, why this is used to build git. Any how, like this it worked.

    So long, E

  • elmar

    Thanx a bunch!
    why does it need this line: aptitude install build-essential gettext

    I checked the man page of gettext. it is not really obvious to me, why this is used to build git. Any how, like this it worked.

    So long, E

  • Cleo_sunshine

    Thank you!