From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 F21637EE25 for ; Mon, 18 Nov 2013 17:21:22 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of jp.deplaix@gmail.com) identity=pra; client-ip=74.125.83.46; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jp.deplaix@gmail.com"; x-sender="jp.deplaix@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of jp.deplaix@gmail.com designates 74.125.83.46 as permitted sender) identity=mailfrom; client-ip=74.125.83.46; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jp.deplaix@gmail.com"; x-sender="jp.deplaix@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-f46.google.com) identity=helo; client-ip=74.125.83.46; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="jp.deplaix@gmail.com"; x-sender="postmaster@mail-ee0-f46.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As8DAFc9ilJKfVMulWdsb2JhbABZhwe4SYN4gRwWDgEBAQEHDQkJEiqCJQEBBSMVCAEbHAIDDAYFCw0CAgUWCwICCQMCAQIBEREBBQEcEwgCF4dTAQMOAQWkHIwEU4MJhDQKGScNZIhmAQUMgR2MboFZFoJVgUYDmBCGP4liQYRU X-IPAS-Result: As8DAFc9ilJKfVMulWdsb2JhbABZhwe4SYN4gRwWDgEBAQEHDQkJEiqCJQEBBSMVCAEbHAIDDAYFCw0CAgUWCwICCQMCAQIBEREBBQEcEwgCF4dTAQMOAQWkHIwEU4MJhDQKGScNZIhmAQUMgR2MboFZFoJVgUYDmBCGP4liQYRU X-IronPort-AV: E=Sophos;i="4.93,724,1378850400"; d="scan'208";a="43532106" Received: from mail-ee0-f46.google.com ([74.125.83.46]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 18 Nov 2013 17:21:22 +0100 Received: by mail-ee0-f46.google.com with SMTP id c4so2637480eek.33 for ; Mon, 18 Nov 2013 08:21:22 -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:references :in-reply-to:content-type:content-transfer-encoding; bh=pefrLNbNSBj7lT1l8U7G029/Q4zPSYFgFwn3ccmdkbI=; b=fthQddEn4YJYKjaoZZ5BhJkC4R1le1kjguNzO0a8KKcEYYpAQ+Rz2hfC9ZZ+Bsgf6V Gk5FODA7TRN3zLXYuCuiSX2IircW5PJ1gBqwC2U18SKffoXm3BGLMT4yoTjrPZqYJyvZ /k93C4L2tkf/7UJqof7buhTfNAKDMkWoYeYo5KgekZiz3kIOEHmpoL/1sPJf2V8J6NnS HaL6CtjHriFIaBwYndeNkFsElDPIWjoqXdeRSZHq5LotRStOIKAxAfIoLl2ZtqGtlkwu WKg3q9Xb7DkIEMz/FVzoB7hGUaKSq2itfkT51l++5wY/WZJYqXl6nvqxLyFlIn5jxz9j uwJw== X-Received: by 10.14.183.72 with SMTP id p48mr14006273eem.21.1384791682318; Mon, 18 Nov 2013 08:21:22 -0800 (PST) Received: from [10.41.178.43] ([163.5.218.91]) by mx.google.com with ESMTPSA id k7sm39336020eeg.13.2013.11.18.08.21.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 08:21:21 -0800 (PST) Message-ID: <528A3E7F.7020608@gmail.com> Date: Mon, 18 Nov 2013 17:21:19 +0100 From: Jacques-Pascal Deplaix User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <528A3772.6070000@gmail.com> In-Reply-To: <528A3772.6070000@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] camomile question Note that Batteries >= 2.0 doesn't depend anymore on Camomile. On 11/18/2013 04:51 PM, Matej Kosik wrote: > 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? >