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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 3B8A37EEF8 for ; Sun, 19 Jul 2015 01:11:05 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of yallop@gmail.com) identity=pra; client-ip=209.85.217.182; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="yallop@gmail.com"; x-sender="yallop@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of yallop@gmail.com designates 209.85.217.182 as permitted sender) identity=mailfrom; client-ip=209.85.217.182; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="yallop@gmail.com"; x-sender="yallop@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-lb0-f182.google.com) identity=helo; client-ip=209.85.217.182; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="yallop@gmail.com"; x-sender="postmaster@mail-lb0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AKAQDn26pVm7bZVdFbg2daDwaDHbo3hX8CgRoHTAEBAQEBARIBAQEBAQYLCwkhLoQjAQEBAwESER0BGx0BAwELBgULDQICJgICIQEBEQEFARwGEyKHdgEDCgioFoEsPjGLP4FsgnmKSAoZJw1XhFcBAQEBAQUBAQEBARcBBQ6BFIoqgk2COQeCaIFDBYw4iBqEb4VKgWiRX4VeEiOBFReCGR+BVD0xgksBAQE X-IPAS-Result: A0AKAQDn26pVm7bZVdFbg2daDwaDHbo3hX8CgRoHTAEBAQEBARIBAQEBAQYLCwkhLoQjAQEBAwESER0BGx0BAwELBgULDQICJgICIQEBEQEFARwGEyKHdgEDCgioFoEsPjGLP4FsgnmKSAoZJw1XhFcBAQEBAQUBAQEBARcBBQ6BFIoqgk2COQeCaIFDBYw4iBqEb4VKgWiRX4VeEiOBFReCGR+BVD0xgksBAQE X-IronPort-AV: E=Sophos;i="5.15,500,1432591200"; d="scan'208";a="140486368" Received: from mail-lb0-f182.google.com ([209.85.217.182]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Jul 2015 01:11:04 +0200 Received: by lbbyj8 with SMTP id yj8so77737618lbb.0 for ; Sat, 18 Jul 2015 16:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lkW5vSP3HP3JNMa5W30sgfP1pJ3xJWjrJZr2sqPThKs=; b=pJyC/Zlp1p8yrLnjoN7aZzw2Lrf1bwM9sSiQ7dpZI+MFFVUE6zfBPuXN4vR8gzQkfp 6KI3yvW25WkM7VtkSET3Ib1MlNcHAr8uocT4Z0A+IXVRfNpgI7/e97lwWlLW+iGv7VeX aZdcJfIt2V8DcMht5mB0Ntk/yiP9fqcjNuDt4CAVp0+OHbd0pPs21jyRGpLQ11gWE35g jMHhREUb+o9Ziwo6giU1BNiICh3mdD8Jb8I351rVM6KQtJU+cAhV7UnWNdNH7+11gu+Q HBCC7jOrbsQA3Y1Ljzb4zDxOvgkSe4ltrSbpm/kf8ZK3PGnRrOXMsUp3m43OatdxIrin RRxw== MIME-Version: 1.0 X-Received: by 10.112.126.42 with SMTP id mv10mr21311749lbb.58.1437261063437; Sat, 18 Jul 2015 16:11:03 -0700 (PDT) Received: by 10.25.199.10 with HTTP; Sat, 18 Jul 2015 16:11:03 -0700 (PDT) In-Reply-To: References: Date: Sun, 19 Jul 2015 00:11:03 +0100 Message-ID: From: Jeremy Yallop To: Kenneth Adam Miller Cc: caml users Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] OCamlJava opam packages troubles On Sat, Jul 18, 2015 at 9:36 PM, Kenneth Adam Miller wrote: > There are duplicate ocamlfind specific opam packages: > > opam search ocamlfind > ... > ocamlfind-ocj -- A library manager for OCaml > ocj-ocamlfind -- A library manager for OCaml It appears that ocj-ocamlfind is the one to use, since it corresponds to a much more recent version than ocamlfind-ocj: $ opam show ocamlfind-ocj | grep version version: 1.4.0 installed-version: available-version: 1.4.0 $ opam show ocj-ocamlfind | grep version version: 1.5.5 installed-version: available-version: 1.5.5 > I can't continue development using ocamljava until I can install that > package. I don't know how to continue hunting this error. Basically, the > library that I'm developing uses -package bytes in the command line, so I > presume that base.bytes is the opam package that it's talking about. If you have ocj-ocamlfind installed then I don't think you need base-bytes as well, since ocj-ocamlfind automatically installs the bytes package. (There are two notions of "package" here: ocamlfind/findlib packages, such as "bytes", which are specified with the "-package" flag to ocamlfind, and OPAM packages, such as "base-bytes". There's not always a one-to-one correspondence between the two.) You can check whether the bytes findlib package is available by running the following command: ocamlfind query bytes Here's how you might build and run a simple program using OCaml-Java, ocj-ocamlfind and the bytes package: $ cat test_bytes.ml let () = let name = Sys.argv.(0) in Printf.printf "%s (length %d)\n" name (Bytes.length name) $ ocamlfind java -o test_bytes.jar -package bytes test_bytes.ml $ java -jar ./test_bytes.jar /tmp/test_bytes.jar (length 19) Kind regards, Jeremy.