git installation error missing installation candidate

前端 未结 5 1951
遇见更好的自我
遇见更好的自我 2021-01-18 18:19

I tried installing git on Ubuntu 12.10 using the command sudo apt-get install git. But I am getting error message like this:

Readin         


        
5条回答
  •  不要未来只要你来
    2021-01-18 18:57

    I found a nice tutorial about git on ubuntu 12 here.

    It mainly mentioned the dependencies prior to install:

    sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev build-essential
    

    and to use this for the git installation: sudo apt-get install git-core sudo apt-get update

    and further more it says: Once they are installed, you can download the latest version of Git from the google code page.

    wget https://git-core.googlecode.com/files/git-1.8.1.2.tar.gz
    

    After it downloads, untar the file and switch into that directory:

    tar -zxf git-1.8.1.2.tar.gz
    

    cd git-1.8.1.2

    If you want to do a global install, install it once as yourself and once as root, using the sudo prefix:

    make prefix=/usr/local all
    sudo make prefix=/usr/local install
    

    If you need to update Git in the future, you can use Git itself to do it.

    git clone git://git.kernel.org/pub/scm/git/git.git
    

    Go and check the tutorial and leave her a comment ;-)

提交回复
热议问题