Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 84199 invoked from network); 6 Mar 2010 18:23:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Mar 2010 18:23:23 -0000 Received: (qmail 96621 invoked by uid 500); 6 Mar 2010 18:23:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96584 invoked by uid 500); 6 Mar 2010 18:23:04 -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 96576 invoked by uid 99); 6 Mar 2010 18:23:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Mar 2010 18:23:04 +0000 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=FREEMAIL_FROM,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sgtmcd@gmail.com designates 209.85.211.174 as permitted sender) Received: from [209.85.211.174] (HELO mail-yw0-f174.google.com) (209.85.211.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Mar 2010 18:23:03 +0000 Received: by ywh4 with SMTP id 4so961513ywh.5 for ; Sat, 06 Mar 2010 10:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:in-reply-to :mime-version:content-type:message-id:content-transfer-encoding:from :subject:date:to:x-mailer; bh=jSiwEer9bHRULqXtKIE7vFrNhyxU9azlZka53w0EV34=; b=oiXQgKLoLyvr5J3fo1/40OqgpK/QZkOb8lhfs5Hrpgm2xU2jHSvff5S2nkUEWysw3T ynC6QmXYZZ9YyLWFY4+C1DJr0Sjnb/lxtE5HymJCX9AVFx3d4ZWinqIE2+Qu3o5QSwuL z7iD75GHuSgxA1QUBhpmnV9RIjvw5z8/W0a7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-type:message-id :content-transfer-encoding:from:subject:date:to:x-mailer; b=nLm02YqUMCZ39aoS8Tkdc8Nqc+j8n3jZZIFi7hEa5QbS0zv5+2exL8YQUbr26nuTk/ QWhJ+zYuDhuNPUDQk+I48Tv8Ru/C3jFNcVxHJZJqUjhzIVdpoM08QVmFwHuTuNgWpPrQ ker+oWXbUPq6c8+0hgR0+0bqpnaJ6lTkcm7L0= Received: by 10.101.165.15 with SMTP id s15mr5327460ano.189.1267899762346; Sat, 06 Mar 2010 10:22:42 -0800 (PST) Received: from 192-168-0-5.local.network (70-184-23-8.atlasok.com [70.184.23.8]) by mx.google.com with ESMTPS id 16sm1927070gxk.9.2010.03.06.10.22.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Mar 2010 10:22:41 -0800 (PST) References: <08B76FFE-58C7-4B10-9E52-24E1D1DFBFF2@tumbolia.org> <024E5042-43A4-46F9-9DB7-A5DB91A1BE81@tumbolia.org> <10E31528-FD6F-4ABB-A117-685D3091A39D@tumbolia.org> In-Reply-To: Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii Message-Id: <2296C865-2B02-4920-BE16-4AE89BE7DEBF@gmail.com> Content-Transfer-Encoding: quoted-printable From: Shawn McDermott Subject: Re: static binary Date: Sat, 6 Mar 2010 12:22:40 -0600 To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1077) On Mar 6, 2010, at 12:19 PM, Andrew Melo wrote: > On Sat, Mar 6, 2010 at 12:06 PM, Shawn McDermott = wrote: >>=20 >>=20 >> On Mar 6, 2010, at 11:50 AM, Noah Slater wrote: >>=20 >>> You don't need root access to install CouchDB. >>=20 >> true, but to install all the dependencies(erlang) you do. >=20 > Erlang and the other dependencies all have --prefix options in their > configure scripts, so you can build and install them without needing > root. >=20 > best, > Andrew >=20 good point, but I wanted precompiled binaries that I could install = without the user having to wait for compiling to finish. >=20 >>>=20 >>> On 6 Mar 2010, at 17:30, Shawn McDermott wrote: >>>=20 >>>>=20 >>>> On Mar 6, 2010, at 11:24 AM, Noah Slater wrote: >>>>=20 >>>>> That's not really a binary though, is it? >>>>>=20 >>>>> If you knew EXACTLY what system you wanted to roll-out to, you = could tar up all of the files for Erlang, SpiderMonkey, the shared = libraries, the CouchDB code, and all the supporting files. You could = then untar that archive on the target server, and have a running CouchDB = instance. >>>>>=20 >>>>> Why on earth you would want to do this, is beyond me. >>>>=20 >>>> The reason I did it was to have an install that would not require = root access. >>>>=20 >>>>>=20 >>>>> On 6 Mar 2010, at 15:39, Shawn McDermott wrote: >>>>>=20 >>>>>>=20 >>>>>> On Mar 6, 2010, at 9:29 AM, km wrote: >>>>>>=20 >>>>>>> On Sat, Mar 6, 2010 at 10:33 PM, Noah Slater = wrote: >>>>>>>=20 >>>>>>>> You cannot. >>>>>>>>=20 >>>>>>>=20 >>>>>>=20 >>>>>> I have done it....... what I had to do was compile erlang, = libjs, and couchdb, create an installer (I used izpack) that installs = all of that to a location, then using sed/awk scrapes all the files to = the new install path. It works but it is nasty! >>>>>>=20 >>>>>> Shawn >>>>>>=20 >>>>>>> I dont know! >>>>>>> I have just stumbled upon an option passed to the configure like = this >>>>>>> ./configure *--enable-static* = --with-js-include=3D/path/to/js/include >>>>>>> --with-js-lib=3D/path/to/js/lib >>>>>>>=20 >>>>>>> But I am really doubtful if the final build includes other = dependencies >>>>>>> like js libraries as well! >>>>>>>=20 >>>>>>> Krishna >>>>>>> = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>>>=20 >>>>>>>>=20 >>>>>>>> There is no such thing as a static binary for CouchDB. It uses = an >>>>>>>> interpreted language, which means ed the interpreter, and the = proper >>>>>>>> bindings for the interpreter built it. You also need an = external >>>>>>>> SpiderMonkey, and such like. >>>>>>>>=20 >>>>>>>> On 6 Mar 2010, at 12:05, km wrote: >>>>>>>>=20 >>>>>>>>> On Sat, Mar 6, 2010 at 8:46 PM, Noah Slater = >>>>>>>> wrote: >>>>>>>>>=20 >>>>>>>>>> If you're on Ubuntu, why not install the package from the = official >>>>>>>>>> repositories? >>>>>>>>>>=20 >>>>>>>>>> ya I already have 0.10 on ubuntu 9.10 from repositories. >>>>>>>>> But that doesnt solve my probelm. I am trying to install = couchdb 0.11 >>>>>>>>> (unreleased) from source and compile it for now. >>>>>>>>> and I would like to know how i could change configure/make = file to >>>>>>>> generate >>>>>>>>> a static binary for installation on other non-ubuntu systems. >>>>>>>>>=20 >>>>>>>>> regards, >>>>>>>>> Krishna >>>>>>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>>>>>=20 >>>>>>>>>> On 6 Mar 2010, at 11:44, km wrote: >>>>>>>>>>=20 >>>>>>>>>>> great! but how ? >>>>>>>>>>> I am able to compile 0.11 on ubuntu 9.10. >>>>>>>>>>> So what changes are needed to compile a static binary; which = includes >>>>>>>>>> all >>>>>>>>>>> dependencies ? >>>>>>>>>>>=20 >>>>>>>>>>> regards, >>>>>>>>>>> Krishna >>>>>>>>>>>=20 >>>>>>>>>>> On Sat, Mar 6, 2010 at 8:33 PM, Noah Slater = >>>>>>>>>> wrote: >>>>>>>>>>>=20 >>>>>>>>>>>> Yep, you should be able to do this yourself from the source = tarball. >>>>>>>>>>>>=20 >>>>>>>>>>>> On 6 Mar 2010, at 07:46, km wrote: >>>>>>>>>>>>=20 >>>>>>>>>>>>> Hi all, >>>>>>>>>>>>>=20 >>>>>>>>>>>>> Is it possible to make a static binary of the couchdb = (upcoming >>>>>>>> release >>>>>>>>>>>>> 0.11) ? so that i can distribute it on other systems which = donot have >>>>>>>>>> all >>>>>>>>>>>>> the dependencies ? >>>>>>>>>>>>> any ideas ? >>>>>>>>>>>>>=20 >>>>>>>>>>>>> thanks & regards, >>>>>>>>>>>>>=20 >>>>>>>>>>>>> Krishna >>>>>>>>>>>>=20 >>>>>>>>>>>>=20 >>>>>>>>>>=20 >>>>>>>>>>=20 >>>>>>>>=20 >>>>>>>>=20 >>>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20 >>=20 >=20 >=20 >=20 > --=20 > -- > Andrew Melo