From user-return-18075-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Sep 27 21:02:55 2011 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69D2A9991 for ; Tue, 27 Sep 2011 21:02:55 +0000 (UTC) Received: (qmail 49711 invoked by uid 500); 27 Sep 2011 21:02:53 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 49678 invoked by uid 500); 27 Sep 2011 21:02:53 -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 49668 invoked by uid 99); 27 Sep 2011 21:02:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 21:02:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rjones@salientsystems.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 21:02:47 +0000 Received: by wyh11 with SMTP id 11so8118118wyh.11 for ; Tue, 27 Sep 2011 14:02:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.177.202 with SMTP id bj10mr9414879wbb.44.1317157346003; Tue, 27 Sep 2011 14:02:26 -0700 (PDT) Received: by 10.180.8.201 with HTTP; Tue, 27 Sep 2011 14:02:25 -0700 (PDT) In-Reply-To: References: <3D88CE7B490E4801946E7EDBA439075A@gmail.com> Date: Tue, 27 Sep 2011 17:02:25 -0400 Message-ID: Subject: Re: Minimum Erlang Libraries for CouchDB From: Robert Jones To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=00248c0ee508b8cb8004adf2970f X-Virus-Checked: Checked by ClamAV on apache.org --00248c0ee508b8cb8004adf2970f Content-Type: text/plain; charset=ISO-8859-1 What's the trick for launching directly using erlexec? I basically used the Android-Couchbase-SourceBuild as a framework, but I stripped out all the Android references and plugged in my own tools as necessary. Now I've come to the rather embarrassing conclusion that I don't know how to attempt to launch this thing. I suspect the following line from my couchdb_wrapper script is the key, but what should the arguments be? I guess my question is, how do I launch an OS process with erlexec, and how can I get that process to be couchdb? exec $BINDIR/erlexec $@ On Sat, Sep 24, 2011 at 8:48 PM, Dale Harvey wrote: > Hey > > The relevant files in the Android build is > > > https://github.com/couchbase/Android-Couchbase-SourceBuild/blob/master/build.final > > on android we strip away a lot of couch and erlangs boot files so you might > not want to do that, we launch directly with erlexec, one of the easy > savings is to strip debug symbols from all the beam files, that reduced the > beams by around a half > > > https://github.com/couchbase/Android-Couchbase-SourceBuild/blob/master/build.final#L199 > > The current android build (in a compressed archive) is 4.5MB > > Cheers > Dale > > On 25 September 2011 00:37, Paul J. Davis >wrote: > > > I can't point you at anything specific, but the two places I would look > are > > at the BigCouch `make dist` command as well as what Dale Harvey has been > > cooking up for the Android port. Both should be as minimal of an install > as > > possible. I think Dale's probably got the list as small as possible for > the > > time being since he's been operating under similar "make it as small as > > possible" constraints as I imagine you'd need. > > > > URLs of note: > > > > https://github.com/couchbase/Android-Couchbase > > https://github.com/cloudant/bigcouch > > > > > > > > On Saturday, September 24, 2011 at 6:11 PM, Robert Jones wrote: > > > > > My evil plan is to use CouchDB on a semi-embedded platform. I'd like to > > > conserve space by only installing the Erlang libraries necessary to > > support > > > CouchDB. I've not been able to locate this information. I'm not an > Erlang > > > developer...yet. If I have to dig in, I will. > > > > > > So, does anyone have experience with this, and if so, what did you > find? > > > > > > I'm using Erlang R14B03 and CouchDB 1.1.0 on Linux. > > > > > > I'm also interested in general advice for embedding Erlang/CouchDB. > > > > > > Thanks, > > > Rob > > > > > > -- > > > Robert Jones > > > Technical Lead, Software Development > > > > > > L.B. Foster Company - Salient Systems > > > 4393-K Tuller Rd > > > Dublin, OH 43017-5008 > > > phone: (614) 792-5800 EX 4636 > > > fax: (614) 792-5888 > > > email: rjones@salientsystems.com (mailto:rjones@salientsystems.com) < > > your%20name@salientsystems.com (mailto:20name@salientsystems.com)> > > > > > > website: www.lbfoster.com (http://www.lbfoster.com) > > > NASDAQ Ticker Symbol: FSTR > > > > > -- Robert Jones Technical Lead, Software Development L.B. Foster Company - Salient Systems 4393-K Tuller Rd Dublin, OH 43017-5008 phone: (614) 792-5800 EX 4636 fax: (614) 792-5888 email: rjones@salientsystems.com website: www.lbfoster.com NASDAQ Ticker Symbol: FSTR --00248c0ee508b8cb8004adf2970f--