<?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>Singletoned &#187; install</title>
	<atom:link href="http://blog.singletoned.net/tag/install/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.singletoned.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 21 Jan 2010 20:50:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing CouchDB on Mac OS 10.5</title>
		<link>http://blog.singletoned.net/2008/04/installing-couchdb-on-mac-os-105/</link>
		<comments>http://blog.singletoned.net/2008/04/installing-couchdb-on-mac-os-105/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 09:29:58 +0000</pubDate>
		<dc:creator>Ed Singleton</dc:creator>
				<category><![CDATA[couchdb]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[macosx]]></category>

		<guid isPermaLink="false">http://www.singletoned.net/2008/04/10/installing-couchdb-on-mac-os-105/</guid>
		<description><![CDATA[I&#8217;ve been reading about CouchDB on and off for a few months now, and recently decided to properly evaluate it as an option for my new website.  This decision weirdly coincided with the release of Google AppEngine which uses their Bigtable system, which is vaguely similar to CouchDB (non-relational, document based, flexible and scalable).

Anyway, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been reading about <a href="http://couchdb.org/" title="Apache CouchDB: The CouchDB Project">CouchDB</a> on and off for a few months now, and recently decided to properly evaluate it as an option for my new website.  This decision weirdly coincided with the release of <a href="http://code.google.com/appengine/" title="Google App Engine - Google Code">Google AppEngine</a> which uses their Bigtable system, which is vaguely similar to CouchDB (non-relational, document based, flexible and scalable).</p>

<p>Anyway, I tried to install CouchDB on Leopard, and hit a few minor issues which I thought I&#8217;d document for others trying to install it.</p>

<p>I installed from Macports (always a good first stop).  There appears to be a missing dependency on SeaMonkey, so you need to do:</p>

<p><pre><code>sudo port install seamonkey
sudo port install couchdb
</code></pre></p>

<p>When you first start couchdb it complians that: <code>CouchDB needs write permission on the data directory: /opt/local/var/lib/couchdb</code> or <code>CouchDB needs write permission on the log directory: /opt/local/var/log/couchdb</code>.</p>

<p>I tried doing <code>sudo couchdb</code> to get over that, and couchdb seemed to start happily, and there was a response from <code>http://localhost:5984/</code>.  However, when I inserted my first document using couchdb-python, python hung completely with no repsonse (I left it for 10 minutes while I made a coffee).  In retrospect, <code>sudo couchdb</code> probably wasn&#8217;t the correct way to go (particularly as those directories don&#8217;t even exist), but I was keen to start playing.  The correct thing to do is probably to create a couchdb user that runs the database and do <code>sudo -u couchdb couchdb</code> to start the database.  Unfortunately I&#8217;m quite lazy, so instead I just did:</p>

<p><pre><code>sudo mkdir -p /opt/local/var/lib/couchdb
sudo chown ed /opt/local/var/lib/couchdb
sudo mkdir -p /opt/local/var/log/couchdb
sudo chown ed /opt/local/var/log/couchdb
</code></pre></p>

<p>Where <code>ed</code> should be replaced by your username.  <code>mkdir -p</code> recursively makes directories (incase you don&#8217;t have <code>/opt/local/var/lib/</code> or <code>/opt/local/var/log</code>) yet.</p>

<p>Anyway, hope this helps someone else, if they have problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.singletoned.net/2008/04/installing-couchdb-on-mac-os-105/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
