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 5E6857ED25 for ; Mon, 22 Jul 2013 10:53:31 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.89,718,1367964000"; d="scan'208";a="26844152" Received: from top-wifi.irisa.fr (HELO top) ([131.254.66.192]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 22 Jul 2013 10:53:31 +0200 User-agent: mu4e 0.9.9.5; emacs 24.3.1 From: Alan Schmitt To: OCaml List Date: Mon, 22 Jul 2013 10:53:31 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Caml-list] Opam problem: cannot upgrade yojson 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