caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jonathan Protzenko <jonathan.protzenko@gmail.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Opam problem: cannot upgrade yojson
Date: Mon, 22 Jul 2013 18:59:00 +0800	[thread overview]
Message-ID: <51ED1074.4060503@gmail.com> (raw)
In-Reply-To: <m261w39dro.fsf@polytechnique.org>

I've had the same error on two different computers, removing yojson 
from ~/.opam/<your-version>/installed.roots and manually doing 
ocamlfind remove yojson fixed it.

I may have filed a bug about that.

jonathan

On Mon 22 Jul 2013 04:53:31 PM SGT, Alan Schmitt wrote:
> Hello,
>
> I cannot seem to upgrade yojson using opam, because I'm stuck with a
> version I cannot remove:
>
> ,----
> | $ opam info yojson
> |              package: yojson
> |              version: 1.1.3
> |              depends: ocamlfind & cppo & easy-format & biniou <= 1.0.3
> |    installed-version: yojson.1.1.3 [4.00.1]
> |   available-versions: 1.0.3, 1.1.6
> |          description: Yojson is an optimized parsing and printing library for the JSON format
> |
> | It addresses a few shortcomings of json-wheel including 2x speedup,
> | polymorphic variants and optional syntax for tuples and variants.
> |
> | ydump is a pretty-printing command-line program provided with the
> | yojson package.
> |
> | The program atdgen can be used to derive OCaml-JSON serializers and
> | deserializers from type definitions.
> |
> | $ opam remove yojson
> |
> | $ opam info yojson
> |              package: yojson
> |              version: 1.1.3
> |              depends: ocamlfind & cppo & easy-format & biniou <= 1.0.3
> |    installed-version: yojson.1.1.3 [4.00.1]
> | ...
> |
> | $ opam upgrade
> | The following actions will be performed:
> |  - install yojson.1.1.6
> | 1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
> |
> | =-=-= Installing yojson.1.1.6 =-=-=
> | The archive for yojson.1.1.6 is in the local cache.
> | Extracting /Users/schmitta/.opam/archives/yojson.1.1.6+opam.tar.gz.
> | Building yojson.1.1.6:
> |   make
> |   make install
> | The compilation of yojson.1.1.6 failed.
> | Uninstalling yojson.1.1.6:
> |   ocamlfind remove yojson
> |
> |
> | ==== ERROR [while installing yojson.1.1.6] ====
> | # opam-version    1.0.0
> | # os              darwin
> | # command         make install
> | # path            /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6
> | # exit-code       2
> | # env-file        /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6/yojson-ffb3fd.env
> | # stdout-file     /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6/yojson-ffb3fd.out
> | # stderr-file     /Users/schmitta/.opam/4.00.1/build/yojson.1.1.6/yojson-ffb3fd.err
> | ### stdout ###
> | test ! -f ydump || cp ydump /Users/schmitta/.opam/4.00.1/bin/
> | test ! -f ydump.exe || cp ydump.exe /Users/schmitta/.opam/4.00.1/bin/
> | ocamlfind install yojson META \
> |           $(ls yojson.mli yojson_biniou.mli yojson.cmi yojson_biniou.cmi yojson.cmo yojson_biniou.cmo yojson.cmx yojson_biniou.cmx yojson.o yojson_biniou.o)
> | ### stderr ###
> | ocamlfind: Package yojson is already installed
> |  - (file /Users/schmitta/.opam/4.00.1/lib/yojson/META already exists)
> | make: *** [install] Error 2
> |
> | 'opam upgrade' failed.
> `----
>
> Am I doing something wrong here, or is this a bug?
>
> Thanks,
>
> Alan
>

  reply	other threads:[~2013-07-22 10:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22  8:53 Alan Schmitt
2013-07-22 10:59 ` Jonathan Protzenko [this message]
2013-07-22 12:16   ` Alan Schmitt
2013-07-22 13:16   ` Anil Madhavapeddy

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=51ED1074.4060503@gmail.com \
    --to=jonathan.protzenko@gmail.com \
    --cc=alan.schmitt@polytechnique.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).