d/installation/index.html @ 3f3e2c21221e

roul: Update site.
author Steve Losh <steve@stevelosh.com>
date Tue, 10 Apr 2012 10:13:09 -0400
parents 301be63dbaaf
children e18a28e88426
<html><head><title>Installation / d</title><link rel="stylesheet" href="../_dmedia/bootstrap.css"/><link rel="stylesheet" href="../_dmedia/tango.css"/><link rel="stylesheet/less" type="text/css" href="../_dmedia/style.less"/><script src="../_dmedia/less.js" type="text/javascript">
        </script></head><body class="content">
        <div class="wrap">
            <header><h1><a href="..">d</a></h1></header><div class="markdown">
<h1 id="installation"><a href="">Installation</a></h1><p>You just need Python and <code>pip</code>:</p>
<div class="codehilite"><pre>pip install d
</pre></div>


<p>You can use <code>easy_install</code> if you really want:</p>
<div class="codehilite"><pre>easy_install d
</pre></div>


<p><code>d</code> uses Markdown, Pygments, and Pyquery to do some of the heavy lifting.</p>
<h2 id="troubleshooting">Troubleshooting</h2>
<p>Some users have reported problems compiling the lxml library on OS X.  If you
get a message that looks like this when installing:</p>
<div class="codehilite"><pre><span class="n">src</span><span class="sr">/lxml/</span><span class="n">lxml</span><span class="o">.</span><span class="n">etree</span><span class="o">.</span><span class="n">c:165674:</span> <span class="n">fatal</span> <span class="n">error:</span> <span class="n">error</span> <span class="n">writing</span> <span class="n">to</span> <span class="o">-</span><span class="p">:</span> <span class="n">Broken</span> <span class="nb">pipe</span>
    <span class="n">compilation</span> <span class="n">terminated</span><span class="o">.</span>
    <span class="n">lipo:</span> <span class="n">can</span><span class="s">'t open input file: /var/tmp//ccZmfWit.out (No such file or directory)</span>
<span class="s">    error: command '</span><span class="n">gcc</span><span class="o">-</span><span class="mf">4.2</span><span class="err">'</span> <span class="n">failed</span> <span class="n">with</span> <span class="nb">exit</span> <span class="n">status</span> <span class="mi">1</span>
</pre></div>


<p>Try running this command and installing again:</p>
<div class="codehilite"><pre><span class="n">export</span> <span class="n">ARCHFLAGS</span><span class="o">=</span><span class="s">"-arch i386 -arch x86_64"</span>
</pre></div>
                </div>
            <footer><p>Created by <a href="http://stevelosh.com">Steve Losh</a>.  Inspired by <a href="http://stevelosh.com/projects/t/">t</a>.</p>
<p><br/><a id="rochester-made" href="http://rochestermade.com" title="Rochester Made"><img src="http://rochestermade.com/media/images/rochester-made-dark-on-light.png" alt="Rochester Made" title="Rochester Made"/></a></p>
<script type="text/javascript">
    var _gauges = _gauges || [];
    (function() {
        var t   = document.createElement('script');
        t.type  = 'text/javascript';
        t.async = true;
        t.id    = 'gauges-tracker';
        t.setAttribute('data-site-id', '4f1df6cb844d521f7b000003');
        t.src = '//secure.gaug.es/track.js';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(t, s);
    })();
</script></footer></div>
    </body></html>