<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SmartLogic Solutions Blog &#187; mac</title>
	<atom:link href="http://blog.smartlogicsolutions.com/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smartlogicsolutions.com</link>
	<description>News and updates from the people at SmartLogic Solutions</description>
	<lastBuildDate>Tue, 30 Nov 2010 21:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Getting git-svn to run on OS X</title>
		<link>http://blog.smartlogicsolutions.com/2008/12/10/getting-git-svn-to-run-on-os-x/</link>
		<comments>http://blog.smartlogicsolutions.com/2008/12/10/getting-git-svn-to-run-on-os-x/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 01:37:20 +0000</pubDate>
		<dc:creator>Greg Jastrab</dc:creator>
				<category><![CDATA[Greg Jastrab]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=428</guid>
		<description><![CDATA[I&#8217;ve been gitting into git (clever, I know) lately, so I was trying to migrate my git commits for a project back into an existing subversion repository &#8211; another post coming on that later. When trying to run git-svn to import my subversion repository into git I got the following error, followed by a Perl [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been gitting into <a href="http://git.or.cz/">git</a> (clever, I know) lately, so I was trying to migrate my git commits for a project back into an existing subversion repository &#8211; another post coming on that later.</p>
<p>When trying to run <a href="http://www.kernel.org/pub/software/scm/git/docs/git-svn.html">git-svn</a> to import my subversion repository into git I got the following error, followed by a Perl stack trace:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Can<span style="color: #ff0000;">'t locate Term/ReadKey.pm</span></pre></div></div>

<p>A couple of installs got this working, read on&#8230;</p>
<p><span id="more-428"></span></p>
<h4>Install Term::ReadKey</h4>
<p>To install <a href="http://search.cpan.org/dist/TermReadKey/ReadKey.pm">Term::ReadKey</a>, fire up a terminal and type (you may need to sudo):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-MCPAN</span> <span style="color: #660033;">-e</span> shell
cpan<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">install</span> Term::ReadKey</pre></div></div>

<p>After a bunch of output I got the error message:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Writing Makefile <span style="color: #000000; font-weight: bold;">for</span> Term::ReadKey
    <span style="color: #660033;">--</span> NOT OK
Running <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #7a0874; font-weight: bold;">test</span>
  Can<span style="color: #ff0000;">'t test without successful make
Running make install
  make had returned bad status, install seems impossible</span></pre></div></div>

<p>I tried to see what was wrong with the Makefile by trying to run make in the TermKey folder:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">~<span style="color: #000000; font-weight: bold;">/</span>.cpan<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>TermReadKey-<span style="color: #000000;">2.30</span> $<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
-bash: <span style="color: #c20cb9; font-weight: bold;">make</span>: <span style="color: #7a0874; font-weight: bold;">command</span> not found</pre></div></div>

<p>Interesting, didn&#8217;t realize OS X came preinstalled with things like perl but not make.</p>
<h4>Getting make on OS X</h4>
<p>I&#8217;m sure there&#8217;s an easier way to just get make on OS X, but I&#8217;m still new to my mac, so I wanted to install something supported by Apple instead of getting into stuff like ports.  After searching around on the Developer center I found that <a href="http://developer.apple.com/tools/xcode/">XCode</a> includes make.</p>
<p>After signing up for a free developer account and installing XCode, I now had make.</p>
<h4>Installing Term::ReadKey &#8211; round 2</h4>
<p>Let&#8217;s try this again&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-MCPAN</span> <span style="color: #660033;">-e</span> shell
cpan<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">install</span> Term::ReadKey
&nbsp;
CPAN: Storable loaded ok
Going to <span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>greg<span style="color: #000000; font-weight: bold;">/</span>.cpan<span style="color: #000000; font-weight: bold;">/</span>Metadata
  Database was generated on Wed, <span style="color: #000000;">10</span> Dec <span style="color: #000000;">2008</span> <span style="color: #000000;">11</span>:<span style="color: #000000;">26</span>:<span style="color: #000000;">54</span> GMT
Term::ReadKey is up to date.</pre></div></div>

<p>Hurray!  Now git-svn is working on OS X.</p>
<p>Other relevant Mac/Git links:</p>
<ul>
<li><a href="http://code.google.com/p/git-osx-installer/">Git Installer for OS X</a></li>
<li><a href="http://git.or.cz/course/svn.html">Git Crash Course for SVN Users</a></li>
<ul>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2008/12/01/displaying-an-image-in-a-combobox/" rel="bookmark" class="crp_title">Displaying an Image in a ComboBox</a></li><li><a href="http://blog.smartlogicsolutions.com/2010/02/01/setting-up-ubuntu-9-10-for-ruby-on-rails-development/" rel="bookmark" class="crp_title">Setting Up Ubuntu 9.10 for Ruby On Rails Development</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/08/04/introducing-environmentalize-an-intuitive-environment-focused-config-structure-for-your-rails-applications/" rel="bookmark" class="crp_title">Introducing environmentalist: an intuitive, environment-focused config structure for your rails applications</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/12/05/introducing-puremvcgen-an-ant-based-puremvc-flex-generator/" rel="bookmark" class="crp_title">Introducing PureMVCGen &#8211; an ANT based PureMVC Flex Generator</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/06/07/subversion-timestamps-capistrano-finalize_update/" rel="bookmark" class="crp_title">Subversion Timestamps + Capistrano finalize_update</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2008/12/10/getting-git-svn-to-run-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

