[opam-devel] "ocaml_beginners"::[] Opam issues "[ERROR] Multiple versions installed ..."

Ashish Agarwal agarwal1975 at gmail.com
Mon Sep 1 13:57:01 BST 2014


I don't know, but I'm cc'ing the opam mailing list as you may get a better
response there.


On Mon, Sep 1, 2014 at 1:20 AM, John Magolske listmail at b79.net
[ocaml_beginners] <ocaml_beginners at yahoogroups.com> wrote:

>
>
> Hi,
>
> * Ashish Agarwal agarwal1975 at gmail.com [ocaml_beginners] <
> ocaml_beginners at yahoogroups.com> [140828 07:38]:
>
> >
> > > I've been using opam for a few months now
> >
> > A lot has changed over this time. It might be worth a fresh install.
> > Do rm -rf ~/.opam. There's also a new pre-release of opam out, so
> > you might as well use the newer version.
>
> I'd been doing `opam update && opam upgrade` somewhat regularly over
> this time, under the impression this keeps things up-to-date similar
> to how `aptitude update && aptitude dist-upgrade` works with Debian
> (this is on Debian Sid BTW). And this had been upgrading things nicely
> without error until recently.
>
> In any case, I reinstalled from scratch as suggested and everything
> installed without error. Then, running `opam update -u` installed
> base-threads.base, base-bigarray.base & base-unix.base ... running
> `opam update -u` again, opam claimed to unstall those 3 packages
> again. Seems as though these packages never really get installed no
> matter how many times `opam update -u` is run.
>
> Next I did `opam install ocp-indent merlin utop`, which installed
> these packages without error, and utop worked fine. Then, running
> `opam update -u` failed with errors (see below) that left utop in an
> unusable state, throwing up the error:
>
> Fatal error: exception Fl_package_base.No_such_package("unix", "")
>
> Below I've pasted output from the above mentioned sequence of commands.
> Next I'll try the more recent version of opam to see if that helps,
> but not seeing any bugs listed for 1.1.1 here:
> https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=opam
> I'm wondering if I might be coming up against some other other issues.
>
> Regards,
>
> John
>
> ~~~
>
> % rm -rf ~/.opam
> % sudo aptitude install opam #(opam 1.1.1 was already installed)
> % opam --version
> 1.1.1
> % opam init --comp=4.01.0
>
> [... many lines of complilation output ...]
>
> ... If you agree, OPAM will modify:
>
> - ~/.zshrc (or a file you specify) to set the right environment
> variables and to load the auto-completion scripts for your shell (zsh)
> on startup. Specifically, it checks for and appends the following line:
>
> . ~/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
>
> - ~/.ocamlinit to ensure that non-system installations of `ocamlfind`
> (i.e. those installed by OPAM) will work correctly when running the
> OCaml toplevel. It does this by adding $OCAML_TOPLEVEL_PATH to the list
> of include directories.
> ...
>
> Do you want OPAM to modify ~/.zshrc and ~/.ocamlinit?
> (default is 'no', use 'f' to name a file other than ~/.zshrc)
> [N/y/f] y
>
> User configuration:
> ~/.ocamlinit is already up-to-date.
> ~/.zshrc is already up-to-date.
> Global configuration:
> Updating ~/.opam/opam-init/init.sh
> auto-completion : [true]
> opam-switch-eval: [true]
> Updating ~/.opam/opam-init/init.zsh
> auto-completion : [true]
> opam-switch-eval: [true]
> Updating ~/.opam/opam-init/init.csh
> auto-completion : [true]
> opam-switch-eval: [true]
>
> % opam update -u
> default Downloading https://opam.ocaml.org/urls.txt
> Downloading https://opam.ocaml.org/repo
>
> Updating ~/.opam/repo/compiler-index ...
> Updating ~/.opam/compilers/ ...
> Updating ~/.opam/repo/package-index ...
> Updating ~/.opam/packages/ ...
> Updating the cache of metadata (~/.opam/state.cache) ...
> 3 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 base-threads.base
>
> - install base-bigarray.base
> - install base-unix.base
> 3 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.
> opam update -u 35.00s user 2.27s system 95% cpu 39.197 total
>
> % opam update -u
> default Downloading https://opam.ocaml.org/urls.txt
>
> Updating ~/.opam/repo/compiler-index ...
> Updating ~/.opam/compilers/ ...
> Updating ~/.opam/repo/package-index ...
> Updating ~/.opam/packages/ ...
> Updating the cache of metadata (~/.opam/state.cache) ...
> 3 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 base-threads.base
>
> - install base-bigarray.base
> - install base-unix.base
> 3 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.
> opam update -u 34.70s user 2.38s system 96% cpu 38.499 total
>
> % opam install ocp-indent merlin utop
> [ these installed fine, without error ]
>
> % opam update -u
> default Downloading https://opam.ocaml.org/urls.txt
>
> Updating ~/.opam/repo/compiler-index ...
> Updating ~/.opam/compilers/ ...
> Updating ~/.opam/repo/package-index ...
> Updating ~/.opam/packages/ ...
> The following packages have been UPDATED upstream:
> - biniou.1.0.9
> - camlp4.4.01.0
> - camomile.0.8.5
> - cmdliner.0.9.5
> - cppo.0.9.4
> - easy-format.1.0.2
> - lambda-term.1.6
> - lwt.2.4.5
> - menhir.20130912
> - merlin.1.7.1
> - ocp-build.1.99.8-beta
> - ocp-indent.1.4.2
> - react.1.2.0
> - utop.1.15
> - yojson.1.1.8
> - zed.1.3
>
> Updating the cache of metadata (~/.opam/state.cache) ...
> 20 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 base-threads.base [required by utop]
> - install ocamlfind.1.5.2 [required by merlin, ocp-indent, utop]
>
> - install base-bigarray.base
> - install base-unix.base [required by utop]
> - install camlp4.4.01.0 [required by ocp-indent, utop]
> - install react.1.2.0 [required by utop]
>
> - install menhir.20130912 [required by merlin]
> - install easy-format.1.0.2 [required by merlin]
> - install cppo.0.9.4 [required by merlin]
> - install cmdliner.0.9.5 [required by ocp-indent]
> - install ocp-build.1.99.8-beta [required by ocp-indent]
>
> - install camomile.0.8.5 [required by utop]
> - install lwt.2.4.5 [required by utop]
> - install biniou.1.0.9 [required by merlin]
> - install ocp-indent.1.4.2
>
> - install zed.1.3 [required by utop]
> - install yojson.1.1.8 [required by merlin]
> - install lambda-term.1.6 [required by utop]
> - install merlin.1.7.1
> - install utop.1.15
> 20 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
> [ERROR] The compilation of ocamlfind.1.5.2 failed.
> Removing ocamlfind.1.5.2.
> ocamlfind remove bytes
>
> ./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 uninstall
>
> [ERROR] Due to some errors while processing ocamlfind.1.5.2, the following
> actions will NOT proceed:
> - install merlin.1.7.1
> - install menhir.20130912
> - install lambda-term.1.6
> - install biniou.1.0.9
> - install utop.1.15
> - install lwt.2.4.5
> - install zed.1.3
> - install cppo.0.9.4
> - install camomile.0.8.5
> - install ocp-indent.1.4.2
> - install yojson.1.1.8
> - install ocp-build.1.99.8-beta
> - install react.1.2.0
> - install easy-format.1.0.2
> - install cmdliner.0.9.5
>
> ===== ERROR while installing ocamlfind.1.5.2 =====
> # opam-version 1.1.1
> # os linux
> # command make install
> # path /home/jm/.opam/4.01.0/build/ocamlfind.1.5.2
> # compiler 4.01.0
> # exit-code 2
> # env-file
> /home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/ocamlfind-798-9ace5e.env
> # stdout-file
> /home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/ocamlfind-798-9ace5e.out
> # stderr-file
> /home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/ocamlfind-798-9ace5e.err
> ### stdout ###
> # ...[truncated]
> # cd "/home/jm/.opam/4.01.0/lib/ocaml/compiler-libs/"; \
> # cp topdirs.cmi toploop.cmi "/home/jm/.opam/4.01.0/lib/findlib/"; \
> # fi
> # make[1]: Leaving directory
> '/home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/src/findlib'
> # make[1]: Entering directory
> '/home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/src/bytes'
> # ocamlbuild -classic-display -no-links bytes.cmi bytes.cma
> # cd _build/ && ocamlfind install bytes ../META bytes.cmi bytes.cma
> -optional bytes.cmx bytes.a bytes.cmxa bytes.cmxs
> # Makefile:22: recipe for target 'install' failed
> # make[1]: Leaving directory
> '/home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/src/bytes'
> # Makefile:20: recipe for target 'install' failed
> ### stderr ###
> # Makefile:150: depend: No such file or directory
> # ocamlfind: Package bytes is already installed
> # - (file /home/jm/.opam/4.01.0/lib/bytes/META already exists)
> # make[1]: *** [install] Error 2
> # make: *** [install] Error 2
>
>
> 'opam update -u' failed.
>
> --
> John Magolske
> http://B79.net/contact
>
>  __._,_.___
>   ------------------------------
> Posted by: John Magolske <listmail at b79.net>
> ------------------------------
>     Reply via web post
> <https://groups.yahoo.com/neo/groups/ocaml_beginners/conversations/messages/14105;_ylc=X3oDMTJxMzJyamh2BF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BG1zZ0lkAzE0MTA1BHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTQwOTU0ODgxMw--?act=reply&messageNum=14105>
> •  Reply to sender
> <listmail at b79.net?subject=Re%3A%20%22ocaml_beginners%22%3A%3A%5B%5D%20Opam%20issues%20%22%5BERROR%5D%20Multiple%20versions%20installed%20%2E%2E%2E%22>
> •  Reply to group
> <ocaml_beginners at yahoogroups.com?subject=Re%3A%20%22ocaml_beginners%22%3A%3A%5B%5D%20Opam%20issues%20%22%5BERROR%5D%20Multiple%20versions%20installed%20%2E%2E%2E%22>
> • Start a New Topic
> <https://groups.yahoo.com/neo/groups/ocaml_beginners/conversations/newtopic;_ylc=X3oDMTJlNDhwdjA1BF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTQwOTU0ODgxMw-->
> • Messages in this topic
> <https://groups.yahoo.com/neo/groups/ocaml_beginners/conversations/topics/14102;_ylc=X3oDMTM2azFuZXBrBF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BG1zZ0lkAzE0MTA1BHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTQwOTU0ODgxMwR0cGNJZAMxNDEwMg-->
> (3)
>  Archives up to December 31, 2011 are also downloadable at
> http://www.connettivo.net/cntprojects/ocaml_beginners
> The archives of the very official ocaml list (the seniors' one) can be
> found at http://caml.inria.fr
> Attachments are banned and you're asked to be polite, avoid flames etc.
>  Visit Your Group
> <https://groups.yahoo.com/neo/groups/ocaml_beginners/info;_ylc=X3oDMTJldXB1azloBF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTQwOTU0ODgxMw-->
>
>
>  [image: Yahoo! Groups]
> <https://groups.yahoo.com/neo;_ylc=X3oDMTJkY244OGNmBF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNDA5NTQ4ODEz>
> • Privacy <https://info.yahoo.com/privacy/us/yahoo/groups/details.html> •
> Unsubscribe
> <ocaml_beginners-unsubscribe at yahoogroups.com?subject=Unsubscribe> • Terms
> of Use <https://info.yahoo.com/legal/us/yahoo/utos/terms/>
>
>    .
>
>  __,_._,___
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20140901/3eb5a918/attachment-0001.html>


More information about the opam-devel mailing list