Not signed in (Sign In)
    • CommentAuthorzilkey
    • CommentTimeFeb 17th 2008
     permalink
    I would like to have the latest Git on my Ubuntu Gutsy slice. I've got it installed from aptitude, but it's a few versions behind.

    I've been trying to install git-core from source on OSX Leopard and CentOS and I still haven't gotten it to work. If anyone knows of a later aptitude package, or has had a positive experience installing git from source on gutsy I'd love to hear about it.

    Anyone got that working?
    •  
      CommentAuthorcactus
    • CommentTimeFeb 18th 2008 edited
     permalink

    I have installed git by hand a few times on my ubuntu slice, but that was before arch was an option on slicehost. :)

    I found a text file that had my make arguments for building git:

    NO_EXPAT=yes NO_SVN_TESTS=yes NO_IPV6=yes NO_TCLTK=yes make -j2 prefix=/usr all
    NO_EXPAT=yes NO_SVN_TESTS=yes NO_IPV6=yes NO_TCLTK=yes make -j2 prefix=/usr install
    

    Unfortunately, I dont remember the dependencies I needed installed to build it..
    Here is a list I found by googling.
    http://www.automatthew.com/2008/01/compiling-git-on-fresh-ubuntu-704.html

    I think expat an tcl/tk can be left out, if you use my compile stanzas.. give it a try.

    Thankful People: zilkey
    • CommentAuthorzilkey
    • CommentTimeFeb 18th 2008
     permalink
    Thanks - I'll give that a shot.
    • CommentAuthoreclesh
    • CommentTimeFeb 18th 2008
     permalink
    To get all the build dependencies you can do

    apt-get build-dep git-core

    Then just set the prefix and make. Like cactus said, though, you might want to cut out the Tcl/Tk bits when you compile.
    Thankful People: cactus, aramisbear
    •  
      CommentAuthorcactus
    • CommentTimeFeb 20th 2008 edited
     permalink

    neat eclesh. I hadn't run across that apt-get argument yet (build-dep). I will have to make a mental note for the next time I am working on a debian derivative system. :)

    • CommentAuthorbilson
    • CommentTimeMay 1st 2008
     permalink
    Here are the directions I used (after first installing an old version)
    Also, here is the link to the article that suggested it...
    http://ropiku.wordpress.com/2008/04/14/updating-git-on-ubuntu/

    First remove git if you have installed it from repositories:
    sudo apt-get remove git git-svn

    Then go into a temporary folder where you will download and compile git:
    wget http://kernel.org/pub/software/scm/git/git-1.5.5.1.tar.bz2
    sudo apt-get build-dep git-core
    tar xjf git-1.5.5.1.tar.bz2
    cd git-1.5.5.1/
    ./configure
    make
    sudo make install
    Thankful People: aramisbear
    • CommentAuthoravoidiam
    • CommentTimeDec 4th 2008
     permalink
    <blockquote><cite>Posted By: bilson</cite>Here are the directions I used (after first installing an old version)
    Also, here is the link to the article that suggested it...
    <a rel="nofollow" href="http://ropiku.wordpress.com/2008/04/14/updating-git-on-ubuntu/">http://ropiku.wordpress.com/2008/04/14/updating-git-on-ubuntu/</a>

    First remove git if you have installed it from repositories:
    sudo apt-get remove git git-svn

    Then go into a temporary folder where you will download and compile git:
    wget<a rel="nofollow" href="http://kernel.org/pub/software/scm/git/git-1.5.5.1.tar.bz2">http://kernel.org/pub/software/scm/git/git-1.5.5.1.tar.bz2</a>
    sudo apt-get build-dep git-core
    tar xjf git-1.5.5.1.tar.bz2
    cd git-1.5.5.1/
    ./configure
    make
    sudo make install<div class="ThankfulPeople">Thankful People:<span><a href="http://forum.slicehost.com/account.php?u=1854">aramisbear</a></span></div></blockquote>

    perfect. Just make sure you have tk installed first(sudo aptitude install tk) or make will error.
  1.  permalink
    I found that I needed to run before beginning this process:

    sudo apt-get update

    Here is my command line history:

    $ cd /var/git
    $ rm -rf git-1.6.0.2
    $ sudo rm -rf git-1.6.0.2
    $ sudo apt-get update
    $ sudo apt-get build-dep git-core
    $ sudo tar xjf git-1.6.0.2.tar.bz2
    $ cd git-1.6.0.2/
    $ ./configure
    $ sudo ./configure
    $ sudo make
    $ sudo make install
    $ git --version
    • CommentAuthorpyrat
    • CommentTimeMay 14th 2009
     permalink
    I put together a more up to date upgrade sequence.

    http://scoop.cheerfactory.co.uk/2009/05/14/installing-git-from-source-ubuntu/

    sudo apt-get update
    sudo apt-get remove git-core
    sudo apt-get install tcl8.4 tk8.4
    sudo apt-get build-dep git-core

    wget http://kernel.org/pub/software/scm/git/git-1.6.3.1.tar.gz
    tar -zxvf git-1.6.3.1.tar.gz
    cd git-1.6.3.1
    ./configure
    make
    sudo make install


    sudo ln -s /usr/local/bin/git /usr/bin/git
    • CommentAuthorfasiha
    • CommentTimeJun 20th 2009
     permalink
    While building dependencies for git-core I am facing this problem.

    D5G2:~/build-iso# apt-get build-dep git-core
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: You must put some 'source' URIs in your sources.list

    Please tell me which source URI I need to add in my /etc/apt/sources.list ?