Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 4746 invoked from network); 8 Mar 2011 13:18:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Mar 2011 13:18:58 -0000 Received: (qmail 13743 invoked by uid 500); 8 Mar 2011 13:18:56 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 13651 invoked by uid 500); 8 Mar 2011 13:18:56 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 13643 invoked by uid 99); 8 Mar 2011 13:18:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 13:18:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kinleyd@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 13:18:49 +0000 Received: by yxe1 with SMTP id 1so2819762yxe.11 for ; Tue, 08 Mar 2011 05:18:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=Ui9dr89dP/Uhb5rElzvs5yymfpk+L7gcBLWKvaVcT/I=; b=pNJkvwckwxwmrS+LWvcfWGYNZvk9TzSzM3hYUb3td1w6AB1o2huQC+laLqWLCh9Yag YIZxals0RYOPh7XkXDmMTPfDdk4RYKst0F0c5h80pweCEI5tKNud3zw0GorMpf2VXPEK xrubFpe+/kirOhxXUqeALbhVK9ozaml51lBzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=yEE04UMWx+H9bpTrWI9P8NbJixSo/PT/4SE59QGFFUSSLnFxMJHAPmkgQgMoYGzXm8 GacN5zaDd0q8HL/hwFEhO3ZCD5e3hFY+x47dHvNCjN1mGX+Zxj00W6Op2EqEZfcGvL0D 1OIHBdxu8CiqFUA8TBhzA1DGyWKqOFWPcqhdI= MIME-Version: 1.0 Received: by 10.101.27.1 with SMTP id e1mr1993465anj.56.1299590308740; Tue, 08 Mar 2011 05:18:28 -0800 (PST) Received: by 10.100.214.6 with HTTP; Tue, 8 Mar 2011 05:18:28 -0800 (PST) In-Reply-To: <4D7625C1.5080005@yagni.com> References: <4D6D729D.1030304@embedit.de> <4D7605BA.2090403@embedit.de> <4D7625C1.5080005@yagni.com> Date: Tue, 8 Mar 2011 19:18:28 +0600 Message-ID: Subject: Re: Store Databases in /home/$user From: Kinley Dorji To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Wayne, that looks very useful. I've been wanting to mix versions of CouchDB besides the one I got working off the Ubuntu repository, but have not had much luck or time (more this) to get through the process. I'm going to get back at it once again. Thanks for sharing. Kinley On Tue, Mar 8, 2011 at 6:49 PM, Wayne Conrad wrote: > On 03/08/2011 03:32 AM, Markus Burrer wrote: >> >> Can I store local.ini in /home/$user and run CouchDB in user space? >> >> > > I'm running couchdb in userspace, installed to the user's home directory.= =A0I > did this so that my built-from-source couchdb won't interfere with the > installed-from-package couchdb. =A0Here's how I did it: > > Install the Debian couchdb package. =A0This is just a lazy way to get a > couchdb user with the home directory /var/lib/couchdb. =A0There' s nothin= g > magical about the package. =A0Create the user and directory manually if y= ou > want, or use an existing user. > > Become the user (e.g. "sudo su - couchdb") > > Download the source or clone the git tree. > > Within the source directory, run ./configure with "--exec-prefix" and > "--prefix" so that the installed files will go somewhere in the user's ho= me > directory. =A0I used something like this: > > $ ./configure --exec-prefix /var/lib/couchdb/custom-install --prefix > /var/lib/couchdb/custom-install/local > > Then "make && make install" as usual. =A0You don't have to do any of it a= s > root: leave off the "sudo" when you "make install." > > You will find binaries in the .ini files in local/etc/couchdb, log files = in > local/var/log/couchdb. &c. > > To start: =A0$ local/etc/init.d/couchdb start. > > If you want this installation of couchdb to be the system default (start > automatically when the box boots), then replace /etc/init.d/couchdb with = a > symlink to local/etc/init.d/couchdb. > > I've done this for 0.11.0, 1.0.1, 1.0.2 and some version so new that the > paint is still wet. =A0Worked every time. > > Note: I'm an amateur playing in a sandbox with much smarter kids. =A0Any = or > all of the above is likely to be thoroughly silly. > >