{"id":322,"date":"2012-09-19T00:37:45","date_gmt":"2012-09-19T00:37:45","guid":{"rendered":"http:\/\/corneliadavis.com\/blog\/?p=322"},"modified":"2012-09-19T00:37:45","modified_gmt":"2012-09-19T00:37:45","slug":"building-git-on-ubuntu-11-10","status":"publish","type":"post","link":"https:\/\/corneliadavis.com\/blog\/2012\/09\/19\/building-git-on-ubuntu-11-10\/","title":{"rendered":"Building Git on Ubuntu 11.10"},"content":{"rendered":"<p>I struggled a bit with this today but as is often the case, one little tweak (okay, really two) and I was good to go.\u00a0 I did lots of googling in the process and found many sources for information on building Git from source but most were a bit older and out of date in one way or another.\u00a0 And, of course, different flavors of Linux also account for some of the differences.\u00a0 I did start with the &#8220;Installing from Source&#8221; from the <a href=\"http:\/\/git-scm.com\/book\">Pro Git<\/a> free book, and after a few modifications ended up doing exactly the following with success:<\/p>\n<ol>\n<li>Get git dependencies.\u00a0 The apt-get command to do this given in the Pro Git book simply didn&#8217;t work for me &#8211; I got a &#8220;Unable to locate package &#8230;&#8221; for each of the packages on that line.\u00a0 Instead I executed the following command:\n<pre>$ sudo apt-get build-dep git-core<\/pre>\n<\/li>\n<li>This, however, did not get the openssl files so I executed the following to get that package:\n<pre>$ sudo apt-get install libssl-dev<\/pre>\n<\/li>\n<li>Next I downloaded the source from <a href=\"https:\/\/github.com\/git\/git\">https:\/\/github.com\/git\/git<\/a>.\u00a0 I didn&#8217;t find a tar file there so clicked on the ZIP button.<\/li>\n<li>Since I got a zip, not a tar I extracted the files using Ubuntu&#8217;s Archive Manager.<\/li>\n<li>Changed into the directory I extracted &#8211; i.e. \/home\/cornelia\/git-git-5976753<\/li>\n<li>Then executed the following two commands:\n<pre>$ sudo make prefix=\/usr\/local all\n$ sudo make prefix=\/usr\/local install<\/pre>\n<\/li>\n<li>Now a\n<pre>git --version<\/pre>\n<p>shows me:<\/p>\n<pre>git version 1.7.12.GIT<\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I struggled a bit with this today but as is often the case, one little tweak (okay, really two) and I was good to go.\u00a0 I did lots of googling in the process and found many sources for information on building Git from source but most were a bit older and out of date in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[67],"class_list":["post-322","post","type-post","status-publish","format-standard","hentry","category-howto","tag-git"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/comments?post=322"}],"version-history":[{"count":0,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/posts\/322\/revisions"}],"wp:attachment":[{"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/media?parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/categories?post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/tags?post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}