title: Trying to update git, but comes up with error /usr/bin/ld: cannot open output file git: Is a directory
body: <p>Originally, I was trying to use Bitbucket which is a nice way to host code and so on. This uses <code>'git'</code>, the version control software, of which you can add code to from linux command line. However, when I tried to do this it came up with a bunch of errors. </p>
  
  <p>So I did some searching around and came to the conclusion that <code>git</code> was out of date (it is version 1.5.4.3 whereas the most recent version is 1.8.1), so I tried to update using <code>sudo apt-get</code> and it says that it is up to date. I tried a few methods like running <code>sudo apt-get update</code> before hand without much luck. So I am now trying to install it manually. I successfully downloaded the tar.gz and unzipped it, but now it won't install and comes up with this when I try <code>make</code> (this is inside the git-1.8.1 folder):</p>
  
  <pre><code>    GEN perl/PM.stamp
      SUBDIR gitweb
      SUBDIR ../
  make[2]: `GIT-VERSION-FILE' is up to date.
      GEN git-instaweb
      LINK git
  /usr/bin/ld: cannot open output file git: Is a directory
  collect2: ld returned 1 exit status
  make: *** [git] Error 1
  </code></pre>
  
  <p>I found a blog post with a similar situation, but I don't really understand it:
  <a href="http://kmaiti.blogspot.co.uk/2011/02/usrbinld-cannot-open-output-file.html" rel="nofollow">usrbinld-cannot-open-output-file</a></p>
  
  <p>So I would really appreciate some help with this!</p>
  
  <p>EDIT: 
  just tried <code>make clean</code> and it now comes up with this:</p>
  
  <pre><code>    GEN perl/PM.stamp
      SUBDIR gitweb
      SUBDIR ../
  make[2]: `GIT-VERSION-FILE' is up to date.
      GEN git-instaweb
      SUBDIR git-gui
      MSGFMT    po/de.msg make[1]: *** [po/de.msg] Error 127
  make: *** [all] Error 2
  </code></pre>