caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ian Zimmerman <itz@buug.org>
To: caml-list@inria.fr
Subject: [Caml-list] opam external solver setting
Date: Mon, 2 May 2016 09:18:31 -0700	[thread overview]
Message-ID: <20160502160110.4595.2E20167E@moyka.sferitz.org> (raw)

I am trying to get started with opam on a fresh gentoo host.  On that
source-based packaging system, untangling the mess of dependencies
dragged in by aspcud is just about impossible, so I thought I'd follow
the instructions at [1] to hook the java based external solver.  I
downloaded & installed the jar file and I added this line to
~/.opam/config, as [1] suggests (line broken here for SMTP conformance,
but it is a single line in the file):

solver: "java -jar
/usr/local/share/java/org/eclipse/equinox/p2/cudf-1.14.jar
 -obj %{criteria} %{input} %{output}"

But now, "opam update" gives me

[WARNING] Command "java -jar
/usr/local/share/java/org/eclipse/equinox/p2/cudf-1.14.jar
 -obj %{criteria} %{input} %{output}" contains 1 space

and then

[ERROR] External solver failure, please fix your installation and check
/home/itz/.opam/config and variable $OPAMEXTERNALSOLVER.

I probably misunderstand the format of the config file, but I can''t
find any doc for it except what's at [1].

I don't want to set this with the environment variable because that
would make maintenance of shell startup scripts harder.

[1]
http://opam.ocaml.org/doc/install.html

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.

                 reply	other threads:[~2016-05-02 16:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160502160110.4595.2E20167E@moyka.sferitz.org \
    --to=itz@buug.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).