d/installation/index.html @ 311c668e679c
deadlift: Update site.
author |
Steve Losh <steve@stevelosh.com> |
date |
Mon, 07 Mar 2016 13:35:38 +0000 |
parents |
38fa67c580a2 |
children |
1f003474d0d9 |
<!DOCTYPE html>
<html><head><meta charset="utf-8"/><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="o">/</span><span class="n">lxml</span><span class="o">/</span><span class="n">lxml</span><span class="p">.</span><span class="n">etree</span><span class="p">.</span><span class="n">c</span><span class="o">:</span><span class="mi">165674</span><span class="o">:</span> <span class="n">fatal</span> <span class="n">error</span><span class="o">:</span> <span class="n">error</span> <span class="n">writing</span> <span class="n">to</span> <span class="o">-:</span> <span class="n">Broken</span> <span class="n">pipe</span>
<span class="n">compilation</span> <span class="n">terminated</span><span class="p">.</span>
<span class="nl">lipo:</span> <span class="n">can</span><span class="err">'</span><span class="n">t</span> <span class="n">open</span> <span class="n">input</span> <span class="n">file</span><span class="o">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">tmp</span><span class="c1">//ccZmfWit.out (No such file or directory)</span>
<span class="nl">error:</span> <span class="n">command</span> <span class="err">'</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="n">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></footer></div>
</body></html>