From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <5764c029b688c1c0d24a2e97cd764f@gmail.com> X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 4633C7EE25 for ; Mon, 18 Nov 2013 16:51:13 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of 5764c029b688c1c0d24a2e97cd764f@gmail.com) identity=pra; client-ip=74.125.83.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-sender="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of 5764c029b688c1c0d24a2e97cd764f@gmail.com designates 74.125.83.45 as permitted sender) identity=mailfrom; client-ip=74.125.83.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-sender="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ee0-f45.google.com) identity=helo; client-ip=74.125.83.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="5764c029b688c1c0d24a2e97cd764f@gmail.com"; x-sender="postmaster@mail-ee0-f45.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhUGAEY2ilJKfVMtlGdsb2JhbABZgh+9MYUSFg4BAQEBBwsLCRIqgmwBGxwCAxIQFhYYAwIBAgEREQEFARYMDQgCF4dTAQMPBAGhKIMEjFeDCYQxChknDWSIZgEFDI4LhgoDmBCGP4liQYRT X-IPAS-Result: AhUGAEY2ilJKfVMtlGdsb2JhbABZgh+9MYUSFg4BAQEBBwsLCRIqgmwBGxwCAxIQFhYYAwIBAgEREQEFARYMDQgCF4dTAQMPBAGhKIMEjFeDCYQxChknDWSIZgEFDI4LhgoDmBCGP4liQYRT X-IronPort-AV: E=Sophos;i="4.93,724,1378850400"; d="scan'208";a="43523421" Received: from mail-ee0-f45.google.com ([74.125.83.45]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 18 Nov 2013 16:51:12 +0100 Received: by mail-ee0-f45.google.com with SMTP id d49so2623880eek.32 for ; Mon, 18 Nov 2013 07:51:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=+xv7AhpVK3LQigjCt9JZNoZc5rWGjIj4J42xT02J+5I=; b=v+crreWq3nrSyd3RIApIdnA4/itxLamhMbfr0l+KhOl+A41VTWiiWVhcc0mdH8GNXY ueFqeDrTOcttKQdb4KpsfEdZKxbiVvgeNae+N+p+2ifQFxYlDpXXYR4f/7ssn8Jkkb1u eRs6+nFoiky2n6zc3HmFrDLf9BuzUoyFHPEHAbcm6Uw9N+hpqu+p6gwiTSN0XW1xOHJK fEU+gqcZf2Hv4org0ZsDRhBIEb//M+j0EZM9sPZLYzvrDgbyJTTqfWVkZVrpVjMsHfIV KLwOHnf6gvFNXAz32pKloVBy68GFGcSoPXYxIdH6U8g779HLMPjUptBo9ZfhyC4T6m1d JbqA== X-Received: by 10.15.108.73 with SMTP id cc49mr1318653eeb.93.1384789872710; Mon, 18 Nov 2013 07:51:12 -0800 (PST) Received: from [172.27.6.157] ([213.106.240.92]) by mx.google.com with ESMTPSA id v45sm39076530eef.11.2013.11.18.07.51.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 07:51:12 -0800 (PST) Message-ID: <528A3772.6070000@gmail.com> Date: Mon, 18 Nov 2013 15:51:14 +0000 From: Matej Kosik <5764c029b688c1c0d24a2e97cd764f@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: OCaml X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Caml-list] camomile question Hi, When I took my native exectuable to a reasonably similar computer, albeit without Ocaml installation, I have noticed the following problem: ./main Fatal error: exception Failure("Cannot find camomile database directory, usually located here: '/usr/share/camomile/database'. Use environment variable CAMOMILE_DIR or CAMOMILE_DATADIR to locate it precisely.") There are two solutions: - sometimes I can install "libcamomile-ocaml-data" package (when I am lucky enough to have the root-access and when given package exists in a given distribution) - or I can copy /usr/share/camomile from my system to the target system (somewhere) and set CAMOMILE_DIR on the target system to designate the root of the camomile directory. Is there a way to compile my program so that the above problem would not arise at run-time? Is it possible: - to drop dependency on Camomile (if I do not need it -- the dependency was introduced by Batteries which I use) if not, then: - bundle that data with the executable? Is there an option for that?