<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>has_many :thoughts: Compiling Git for Mac OS X 10.4.10 (Intel)</title>
    <link>http://blog.kineticweb.com/articles/2007/08/26/compiling-git-for-mac-os-x-10-4-10-intel</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Musings from a Ruby on Rails development team</description>
    <item>
      <title>Compiling Git for Mac OS X 10.4.10 (Intel)</title>
      <description>&lt;p&gt;&lt;b&gt;Update:&lt;/b&gt; Checkout the &lt;a href="http://blog.kineticweb.com/articles/2007/10/30/compiling-git-for-mac-os-x-leopard-10-5"&gt;Leopard version of this &lt;span class="caps"&gt;OS X&lt;/span&gt; Git howto&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;The following is a step-by-step, dependency chain installation guide to getting up and running 
with &lt;a href="http://git.or.cz/"&gt;Git&lt;/a&gt; on &lt;span class="caps"&gt;OS X&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;Only one required version number was needed, docbook-xml v4.2, otherwise you can use the latest versions
of the packages you will be installing, including Git (please note newer version of the below packages
may require other dependencies).&lt;/p&gt;


	&lt;p&gt;You may have wget installed already, though this guide includes wget as it is not natively included 
in Mac &lt;span class="caps"&gt;OS X&lt;/span&gt;. This was needed to pull down docbook-xml 4.2 from the original wiki article I followed, 
noted at the bottom of this article.&lt;/p&gt;


	&lt;p&gt;The following tarballs were used for my installation, in alphabetical order&amp;#8230;&lt;/p&gt;


	&lt;p&gt;asciidoc-8.2.2.tar.gz&lt;br/&gt;
docbook-xsl-1.73.1.tar.gz&lt;br/&gt;
expat-2.0.1.tar.gz&lt;br/&gt;
getopt-1.1.4.tar.gz&lt;br/&gt;
gettext-0.16.1.tar.gz&lt;br/&gt;
git-1.5.2.5.tar.gz&lt;br/&gt;
wget-1.10.2.tar.gz&lt;br/&gt;
xmlto-0.0.18.tar.bz2&lt;br/&gt;&lt;/p&gt;


	&lt;p&gt;1. Download and install expat; dead simple configure/make/make check/sudo make install&lt;/p&gt;


	&lt;p&gt;2. Download and install asciidoc; sudo ./install.sh (requires python &amp;gt;=2.3)&lt;/p&gt;


Test asciidoc by:
	&lt;ul&gt;
	&lt;li&gt;rm doc/asciidoc.html&lt;/li&gt;
		&lt;li&gt;asciidoc doc/asciidoc.txt&lt;/li&gt;
		&lt;li&gt;Should re-generate doc/asciidoc.html&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;3. Download and install gettext; simple configure/make/make check/sudo make install&lt;/p&gt;


4. Download and install getopt; 
	&lt;ul&gt;
	&lt;li&gt;Change root Makefile &lt;span class="caps"&gt;LDFLAGS&lt;/span&gt;=-lintl&lt;/li&gt;
		&lt;li&gt;make/sudo make install&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;5. Download and install wget; dead simple configure/make/sudo make install&lt;/p&gt;


6. Tricky part&amp;#8230; installing xmlto (I used docbook-xsl v1.73.1, docbook-xml 4.2 was required by xmlto)
	&lt;ul&gt;
	&lt;li&gt;sudo mkdir /etc/xml&lt;/li&gt;
		&lt;li&gt;sudo xmlcatalog&amp;#8212;noout&amp;#8212;create /etc/xml/catalog&lt;/li&gt;
		&lt;li&gt;Download and unpack docbook-xsl&lt;/li&gt;
		&lt;li&gt;sudo mkdir -p /usr/local/share/docbook/xsl&lt;/li&gt;
		&lt;li&gt;mv ./docbook-xsl-1.73.1/ /usr/local/share/docbook/xsl/1.73.1&lt;/li&gt;
		&lt;li&gt;sudo xmlcatalog&amp;#8212;noout \&lt;br/&gt;
    &amp;#8212;add &amp;#8216;nextCatalog&amp;#8217; &amp;#8217;&amp;#8217; &amp;#8216;file:///usr/local/share/docbook/xsl/1.73.1/catalog.xml&amp;#8217; \&lt;br/&gt;
    &amp;#8212;create /etc/xml/catalog&lt;br/&gt;&lt;/li&gt;
		&lt;li&gt;sudo mkdir -p /usr/local/share/docbook/xml&lt;/li&gt;
		&lt;li&gt;cd /usr/local/share/docbook/xml&lt;/li&gt;
		&lt;li&gt;sudo wget -r -np -nH -l 0&amp;#8212;cut-dirs=2 http://www.oasis-open.org/docbook/xml/4.2&lt;/li&gt;
		&lt;li&gt;sudo xmlcatalog&amp;#8212;noout \&lt;br/&gt;
    &amp;#8212;add &amp;#8216;nextCatalog&amp;#8217; &amp;#8217;&amp;#8217; &amp;#8216;file:///usr/local/share/docbook/xml/4.2/catalog.xml&amp;#8217; \&lt;br/&gt;
    &amp;#8212;create /etc/xml/catalog&lt;br/&gt;&lt;/li&gt;
		&lt;li&gt;Download and install xmlto; simple configure/make/sudo make install&lt;/li&gt;
	&lt;/ul&gt;


7. Download and install git source&amp;#8230;
	&lt;ul&gt;
	&lt;li&gt;make prefix=/usr/local all doc&lt;/li&gt;
		&lt;li&gt;make prefix=/usr/local test&lt;/li&gt;
		&lt;li&gt;sudo make prefix=/usr/local install install-doc&lt;/li&gt;
	&lt;/ul&gt;


8. Test the installation of Git on your system by&amp;#8230;
	&lt;ul&gt;
	&lt;li&gt;rails some_stupid_demo &amp;amp;&amp;amp; cd some_stupid_demo&lt;/li&gt;
		&lt;li&gt;git-init&lt;/li&gt;
		&lt;li&gt;git-add .&lt;/li&gt;
		&lt;li&gt;git-commit -m &amp;#8216;This is the beginning of a beautiful friendship&amp;#8217;&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;a href="http://wincent.com/knowledge-base/Installing_Git_1.5.2.3_on_Mac_OS_X_Tiger"&gt;http://wincent.com/knowledge-base/Installing_Git_1.5.2.3_on_Mac_OS_X_Tiger&lt;/a&gt;
Taken from above url, but shortened (with some small modifications) from the trial-and-error description above.&lt;/p&gt;


	&lt;p&gt;A helpful start to using Git for Rails development can be found by the great guys over in the UK at New Bamboo&amp;#8230;
&lt;a href="http://blog.nbwd.co.uk/2007/8/16/using-git-for-rails-development"&gt;http://blog.nbwd.co.uk/2007/8/16/using-git-for-rails-development&lt;/a&gt;
I&amp;#8217;ve found this to be an excellent guide, as it includes git-svn for &lt;span class="caps"&gt;SCM&lt;/span&gt; with Git using current &lt;span class="caps"&gt;SVN&lt;/span&gt; repo&amp;#8217;s.&lt;/p&gt;


	&lt;p&gt;Everday Git can be found here&amp;#8230;
&lt;a href="http://www.kernel.org/pub/software/scm/git/docs/everyday.html"&gt;http://www.kernel.org/pub/software/scm/git/docs/everyday.html&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 26 Aug 2007 00:13:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:0ac6b9d6-f1b2-4f0f-afff-36fa47ae5786</guid>
      <author>Justin Reagor</author>
      <link>http://blog.kineticweb.com/articles/2007/08/26/compiling-git-for-mac-os-x-10-4-10-intel</link>
      <category>scm</category>
      <category>Rails</category>
      <category>install</category>
      <trackback:ping>http://blog.kineticweb.com/articles/trackback/55</trackback:ping>
    </item>
    <item>
      <title>"Compiling Git for Mac OS X 10.4.10 (Intel)" by Colin</title>
      <description>Ha, no comments. I guess everyone did exactly what I did... look at a big mess of commands and steer clear. =)

Perhaps you should offer up an intro to Git so one knows what it even is?</description>
      <pubDate>Tue, 25 Sep 2007 08:05:02 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:b61a4b8f-4e68-44fb-89a8-b5b870c2c5f2</guid>
      <link>http://blog.kineticweb.com/articles/2007/08/26/compiling-git-for-mac-os-x-10-4-10-intel#comment-102</link>
    </item>
  </channel>
</rss>
