From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 84643BC57 for ; Mon, 1 Mar 2010 14:28:36 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkQCAHJPi0smachzmWdsb2JhbACbDxUBAQEBAQYNCgcTIrkuhHsE X-IronPort-AV: E=Sophos;i="4.49,560,1262559600"; d="scan'208";a="53798653" Received: from mx2.janestreet.com ([38.105.200.115]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Mar 2010 14:28:36 +0100 Received: from nyc-qsv-mail1.delacy.com ([172.25.22.57]) by mx2.janestreet.com with esmtp (Exim 4.71) (envelope-from ) id 1Nm5fl-0002SJ-6i for caml-list@yquem.inria.fr; Mon, 01 Mar 2010 08:28:33 -0500 Received: from nyc-qsv-004.delacy.com ([172.25.22.194] helo=qsmtp.delacy.com) by nyc-qsv-mail1.delacy.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.71) (envelope-from ) id 1Nm5fl-00088k-Ht; Mon, 01 Mar 2010 08:28:33 -0500 Received: from lon-qws-r01.delacy.com ([172.30.3.51] helo=lon-qws-r01) by qsmtp.delacy.com with smtp (Exim 4.71) (envelope-from ) id 1Nm5fk-0006Qt-CY; Mon, 01 Mar 2010 08:28:33 -0500 Received: by lon-qws-r01 (sSMTP sendmail emulation); Mon, 1 Mar 2010 13:28:28 +0000 From: "Mark Shinwell" Date: Mon, 1 Mar 2010 13:28:28 +0000 To: Marco Maggi Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] [newbie] miscellaneous on installation and web site Message-ID: <20100301132828.GB26002@janestreet.com> References: <877hpw9om6.fsf@rapitore.luna> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877hpw9om6.fsf@rapitore.luna> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam: no; 0.00; shinwell:01 0100,:01 ocaml-:01 destdir:01 destdir:01 usr:01 ocamlopt:01 compiler:01 usr:01 -prefix:01 wrote:01 caml-list:01 bin:01 caml:02 newbie:02 On Mon, Mar 01, 2010 at 02:07:45PM +0100, Marco Maggi wrote: > I think I successfully compiled ocaml-3.11.2 on my > i686-pc-linux-gnu, but there seems to be no way to install > the package in a temporary location via the Linux de facto > standard DESTDIR environment variable; is there a way to do > it? (I am used to build custom packages.) If I understand correctly, in autoconf-style setups, the contents of the DESTDIR variable are prepended to the configured prefix to obtain the paths used for installation. Thus you might install to /tmp/usr/bin/ocamlopt even though the compiler is configured for /usr. Unfortunately I don't believe the Caml build system supports such a feature. One possible way of doing it might be to run "make install" inside a chroot, but you would likely need a lot of additional tools present inside the chroot for that to work. As another poster has said, it's probably best to use the distribution packages if possible, or else just directly write into the installation location (using ./configure -prefix /path/to/install/dir). Mark