Opam issues "[ERROR] Multiple versions installed ..."

"John Magolske [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
Hi,

I've been using opam for a few months now, and it's been working quite
nicely. Recently I've come across an error that I can't sort out...

`opam upgrade` is failing with "[ERROR] Multiple versions installed
for package ocamlfind: { 1.5.1, 1.5.2 }". Below I've pasted the full
output for more details.

Do I need to switch to a different compiler version?

    % opam switch list
    4.01.0  C 4.01.0  Official 4.01.0 release
    --     -- 3.11.2  Official 3.11.2 release
    --     -- 3.12.1  Official 3.12.1 release
    --     -- 4.00.0  Official 4.00.0 release
    --     -- 4.00.1  Official 4.00.1 release

Also tried `opam remove ocamlfind`, but it doesn't seem to be removing
anything:

    % which ocamlfind
    /home/jm/.opam/4.01.0/bin/ocamlfind
    % opam remove ocamlfind
    % opam remove ocamlfind.1.5.1
    % opam remove ocamlfind.1.5.2
    % ocamlfind.1.5.2 is not installed.
    % which ocamlfind
    /home/jm/.opam/4.01.0/bin/ocamlfind

In general I'm finding `opam remove ...` to have no effect:

    % which stog
    /home/jm/.opam/4.01.0/bin/stog
    % opam remove stog
    % which stog
    /home/jm/.opam/4.01.0/bin/stog

Any clues to help me understand the ways of opam much appreciated!

Regards,

John

----

% opam update -u                                                                            ~/comp/soft/_pdf 3:20
default    Downloading https://opam.ocaml.org/urls.txt
default    Downloading https://opam.ocaml.org/index.tar.gz
Updating ~/.opam/repo/compiler-index ...
Updating ~/.opam/compilers/ ...
The following NEW compiler is available:
 - 4.01.0+profile
Updating ~/.opam/repo/package-index ...
Updating ~/.opam/packages/ ...
The following package has been UPDATED upstream:
 - merlin.1.6
Updating the cache of metadata (~/.opam/state.cache) ...
33 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
You can now run 'opam upgrade' to upgrade your system.
The following actions will be performed:
 - install camlp4.4.01.0 [required by stog, utop]
 - install base-threads.base [required by utop]
 - install ocamlfind.1.5.2 [required by cpdf, merlin, ocp-index, stog, utop]
 - install base-bigarray.base
 - install base-unix.base [required by utop]
 - install xmlm.1.2.0 [required by stog]
 - install ulex.1.1 [required by stog]
 - install typerex.1.99.6-beta [required by ocp-index]
 - install react.1.1.0 [required by utop]
 - install re.1.2.2 [required by ocp-index]
 - install ocamlnet.3.7.4-1 [required by stog]
 - install menhir.20130912 [required by merlin]
 - install easy-format.1.0.2 [required by merlin]
 - install curses.1.0.3 [required by ocp-index]
 - install cppo.0.9.4 [required by merlin]
 - install config-file.1.2 [required by stog]
 - install cmdliner.0.9.5 [required by ocp-index]
 - install camomile.0.8.5 [required by utop]
 - install camlpdf.1.7.1 [required by cpdf]
 - install xtmpl.0.9 [required by stog]
 - install ocp-build.1.99.6-beta [required by ocp-index]
 - install lwt.2.4.5 [required by utop]
 - install biniou.1.0.9 [required by merlin]
 - install zed.1.3 [required by utop]
 - install cpdf.1.7
 - install higlo.0.3 [required by stog]
 - install ocp-indent.1.4.1 [required by ocp-index]
 - install yojson.1.1.8 [required by merlin]
 - install lambda-term.1.6 [required by utop]
 - install stog.0.12.0
 - install ocp-index.1.0.2
 - install merlin.1.7.1
 - install utop.1.14
33 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove

=-=-= Installing base-bigarray.base =-=-=
Installing base-bigarray.base.

=-=-= Installing base-threads.base =-=-=
Installing base-threads.base.

=-=-= Installing base-unix.base =-=-=
Installing base-unix.base.

=-=-= Installing camlp4.4.01.0 =-=-=
Installing camlp4.4.01.0.

=-=-= Installing ocamlfind.1.5.2 =-=-=
Building ocamlfind.1.5.2:
  ./configure -bindir /home/jm/.opam/4.01.0/bin -sitelib /home/jm/.opam/4.01.0/lib -mandir /home/jm/.opam/4.01.0/man -config /home/jm/.opam/4.01.0/lib/findlib.conf
  make all
  make opt
  make install
Installing ocamlfind.1.5.2.
[ERROR] Multiple versions installed for package ocamlfind: { 1.5.1, 1.5.2 }
'opam update -u' failed.



-- 
John Magolske
http://B79.net/contact
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.