<?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>Kartar.Net &#187; pandoc</title>
	<atom:link href="http://www.kartar.net/tag/pandoc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kartar.net</link>
	<description>the truth about a man lies in what he hides</description>
	<lastBuildDate>Fri, 30 Jul 2010 00:25:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing pandoc on Fedora 10</title>
		<link>http://www.kartar.net/2009/07/installing-pandoc-on-fedora-10cabal/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=installing-pandoc-on-fedora-10cabal</link>
		<comments>http://www.kartar.net/2009/07/installing-pandoc-on-fedora-10cabal/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 05:04:12 +0000</pubDate>
		<dc:creator>kartar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[pandoc]]></category>

		<guid isPermaLink="false">http://www.kartar.net/?p=1855</guid>
		<description><![CDATA[I&#8217;ve been using pandoc to convert stuff &#8211; mostly Restructured Text &#8211; to Markdown as part of a wiki migration. The pandoc site has instructions for installing on a bunch of operating systems but none RHEL/CentOS/Fedora-like. This is a quick set of instructions for Fedora that should work for similar distros. First, install the Haskell [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a title="Pandoc" href="http://johnmacfarlane.net/pandoc/" target="_blank">pandoc</a> to convert stuff &#8211; mostly <a title="Restructured text" href="http://docutils.sourceforge.net/rst.html" target="_blank">Restructured Text</a> &#8211; to <a title="Markdown" href="http://daringfireball.net/projects/markdown/" target="_blank">Markdown</a> as part of a wiki migration.  The <a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a> site has instructions for installing on a bunch of operating systems but none RHEL/CentOS/Fedora-like.</p>
<p>This is a quick set of instructions for Fedora that should work for similar distros.</p>
<p>First, install the Haskell compiler and Cabal (yet another pear/cpan/rubygems like plug-in loader/manager).</p>
<p><code>$ sudo yum install ghc cabal-install<br />
</code><br />
Update the Cabal data store and install the plug-ins <a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a> requires, <code>utf8-string</code> and <code>zip-archive</code>.</p>
<p><code>$ sudo cabal update<br />
$ sudo cabal install zip-archive utf8-string</code></p>
<p>Now you can either use Cabal to install <a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a> itself:</p>
<p><code>$ sudo cabal install <a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a><br />
</code><br />
Or you can download the source and compile it yourself.</p>
<p><code>$ cd /tmp<br />
$ wget http://<a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a>.googlecode.com/files/<a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a>-1.2.tar.gz<br />
$ tar -zxf <a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a>-1.2.tar.gz<br />
$ cd <a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a>-1.2</code></p>
<p>Now you need to edit the <code><a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a>.cabal</code> file and remove:</p>
<p><code>Executable hsmarkdown<br />
Hs-Source-Dirs:     src<br />
Main-Is:            hsmarkdown.hs<br />
Ghc-Options:        -Wall -threaded<br />
Ghc-Prof-Options:   -auto-all<br />
Extensions:         CPP, TemplateHaskell<br />
if flag(wrappers)<br />
Buildable:      True<br />
else<br />
Buildable:      False</code></p>
<p>From the bottom of the <code><a href="http://www.kartar.net/tag/pandoc/" class="st_tag internal_tag" rel="tag" title="Posts tagged with pandoc">pandoc</a>.cabal</code> file.</p>
<p>Next, run make.</p>
<p><code>$ CABALOPTS=--user make<br />
</code><br />
And finally, if the make works, install the tool:</p>
<p><code>$ sudo make install</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kartar.net/2009/07/installing-pandoc-on-fedora-10cabal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
