<div dir="ltr">I don't know, but I'm cc'ing the opam mailing list as you may get a better response there.<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 1, 2014 at 1:20 AM, John Magolske <a href="mailto:listmail@b79.net">listmail@b79.net</a> [ocaml_beginners] <span dir="ltr"><<a href="mailto:ocaml_beginners@yahoogroups.com" target="_blank">ocaml_beginners@yahoogroups.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div style="background-color:#fff">
<span> </span>
<div>
<div>
<div>
<p>Hi,<br>
<br>
* Ashish Agarwal <a href="mailto:agarwal1975@gmail.com" target="_blank">agarwal1975@gmail.com</a> [ocaml_beginners] <<a href="mailto:ocaml_beginners@yahoogroups.com" target="_blank">ocaml_beginners@yahoogroups.com</a>> [140828 07:38]:</p>
<div class=""><br>
> <br>
> > I've been using opam for a few months now<br>
> <br>
> A lot has changed over this time. It might be worth a fresh install.<br>
> Do rm -rf ~/.opam. There's also a new pre-release of opam out, so<br>
> you might as well use the newer version.<br>
<br></div>
I'd been doing `opam update && opam upgrade` somewhat regularly over<br>
this time, under the impression this keeps things up-to-date similar<br>
to how `aptitude update && aptitude dist-upgrade` works with Debian<br>
(this is on Debian Sid BTW). And this had been upgrading things nicely<br>
without error until recently.<br>
<br>
In any case, I reinstalled from scratch as suggested and everything<br>
installed without error. Then, running `opam update -u` installed<br>
base-threads.base, base-bigarray.base & base-unix.base ... running<br>
`opam update -u` again, opam claimed to unstall those 3 packages<br>
again. Seems as though these packages never really get installed no<br>
matter how many times `opam update -u` is run.<br>
<br>
Next I did `opam install ocp-indent merlin utop`, which installed<br>
these packages without error, and utop worked fine. Then, running<br>
`opam update -u` failed with errors (see below) that left utop in an<br>
unusable state, throwing up the error:<br>
<br>
Fatal error: exception Fl_package_base.No_such_package("unix", "")<br>
<br>
Below I've pasted output from the above mentioned sequence of commands.<br>
Next I'll try the more recent version of opam to see if that helps,<br>
but not seeing any bugs listed for 1.1.1 here:<br>
<a href="https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=opam" target="_blank">https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=opam</a><br>
I'm wondering if I might be coming up against some other other issues.<br>
<br>
Regards,<br>
<br>
John<br>
<br>
~~~<br>
<br>
% rm -rf ~/.opam<br>
% sudo aptitude install opam #(opam 1.1.1 was already installed)<br>
% opam --version<br>
1.1.1<br>
% opam init --comp=4.01.0<br>
<br>
[... many lines of complilation output ...]<br>
<br>
... If you agree, OPAM will modify:<br>
<br>
- ~/.zshrc (or a file you specify) to set the right environment<br>
variables and to load the auto-completion scripts for your shell (zsh)<br>
on startup. Specifically, it checks for and appends the following line:<br>
<br>
. ~/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true<br>
<br>
- ~/.ocamlinit to ensure that non-system installations of `ocamlfind`<br>
(i.e. those installed by OPAM) will work correctly when running the<br>
OCaml toplevel. It does this by adding $OCAML_TOPLEVEL_PATH to the list<br>
of include directories.<br>
...<br>
<br>
Do you want OPAM to modify ~/.zshrc and ~/.ocamlinit?<br>
(default is 'no', use 'f' to name a file other than ~/.zshrc)<br>
[N/y/f] y<br>
<br>
User configuration:<br>
~/.ocamlinit is already up-to-date.<br>
~/.zshrc is already up-to-date.<br>
Global configuration:<br>
Updating ~/.opam/opam-init/init.sh<br>
auto-completion : [true]<br>
opam-switch-eval: [true]<br>
Updating ~/.opam/opam-init/init.zsh<br>
auto-completion : [true]<br>
opam-switch-eval: [true]<br>
Updating ~/.opam/opam-init/init.csh<br>
auto-completion : [true]<br>
opam-switch-eval: [true]<br>
<br>
% opam update -u<br>
default Downloading <a href="https://opam.ocaml.org/urls.txt" target="_blank">https://opam.ocaml.org/urls.txt</a><br>
Downloading <a href="https://opam.ocaml.org/repo" target="_blank">https://opam.ocaml.org/repo</a><div class=""><br>
Updating ~/.opam/repo/compiler-index ...<br>
Updating ~/.opam/compilers/ ...<br></div><div class="">
Updating ~/.opam/repo/package-index ...<br>
Updating ~/.opam/packages/ ...<br></div><div class="">
Updating the cache of metadata (~/.opam/state.cache) ...<br>
3 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove<br>
You can now run 'opam upgrade' to upgrade your system.<br>
The following actions will be performed:<br></div>
- install base-threads.base<div class=""><br>
- install base-bigarray.base<br>
- install base-unix.base<br></div><div class="">
3 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove<br>
<br>
=-=-= Installing base-bigarray.base =-=-=<br>
Installing base-bigarray.base.<br>
<br>
=-=-= Installing base-threads.base =-=-=<br>
Installing base-threads.base.<br>
<br>
=-=-= Installing base-unix.base =-=-=<br>
Installing base-unix.base.<br></div>
opam update -u 35.00s user 2.27s system 95% cpu 39.197 total<br>
<br>
% opam update -u<br>
default Downloading <a href="https://opam.ocaml.org/urls.txt" target="_blank">https://opam.ocaml.org/urls.txt</a><div class=""><br>
Updating ~/.opam/repo/compiler-index ...<br>
Updating ~/.opam/compilers/ ...<br></div><div class="">
Updating ~/.opam/repo/package-index ...<br>
Updating ~/.opam/packages/ ...<br></div><div class="">
Updating the cache of metadata (~/.opam/state.cache) ...<br>
3 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove<br>
You can now run 'opam upgrade' to upgrade your system.<br>
The following actions will be performed:<br></div>
- install base-threads.base<div class=""><br>
- install base-bigarray.base<br>
- install base-unix.base<br></div><div class="">
3 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove<br>
<br>
=-=-= Installing base-bigarray.base =-=-=<br>
Installing base-bigarray.base.<br>
<br>
=-=-= Installing base-threads.base =-=-=<br>
Installing base-threads.base.<br>
<br>
=-=-= Installing base-unix.base =-=-=<br>
Installing base-unix.base.<br></div>
opam update -u 34.70s user 2.38s system 96% cpu 38.499 total<br>
<br>
% opam install ocp-indent merlin utop <br>
[ these installed fine, without error ]<br>
<br>
% opam update -u<br>
default Downloading <a href="https://opam.ocaml.org/urls.txt" target="_blank">https://opam.ocaml.org/urls.txt</a><div class=""><br>
Updating ~/.opam/repo/compiler-index ...<br>
Updating ~/.opam/compilers/ ...<br></div><div class="">
Updating ~/.opam/repo/package-index ...<br>
Updating ~/.opam/packages/ ...<br></div>
The following packages have been UPDATED upstream:<br>
- biniou.1.0.9<br>
- camlp4.4.01.0<br>
- camomile.0.8.5<br>
- cmdliner.0.9.5<br>
- cppo.0.9.4<br>
- easy-format.1.0.2<br>
- lambda-term.1.6<br>
- lwt.2.4.5<br>
- menhir.20130912<br>
- merlin.1.7.1<br>
- ocp-build.1.99.8-beta<br>
- ocp-indent.1.4.2<br>
- react.1.2.0<br>
- utop.1.15<br>
- yojson.1.1.8<br>
- zed.1.3<div class=""><br>
Updating the cache of metadata (~/.opam/state.cache) ...<br></div>
20 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove<div class=""><br>
You can now run 'opam upgrade' to upgrade your system.<br>
The following actions will be performed:<br></div><div class="">
- install base-threads.base [required by utop]<br></div>
- install ocamlfind.1.5.2 [required by merlin, ocp-indent, utop]<div class=""><br>
- install base-bigarray.base<br>
- install base-unix.base [required by utop]<br></div>
- install camlp4.4.01.0 [required by ocp-indent, utop]<br>
- install react.1.2.0 [required by utop]<div class=""><br>
- install menhir.20130912 [required by merlin]<br>
- install easy-format.1.0.2 [required by merlin]<br></div><div class="">
- install cppo.0.9.4 [required by merlin]<br></div>
- install cmdliner.0.9.5 [required by ocp-indent]<br>
- install ocp-build.1.99.8-beta [required by ocp-indent]<div class=""><br>
- install camomile.0.8.5 [required by utop]<br></div><div class="">
- install lwt.2.4.5 [required by utop]<br>
- install biniou.1.0.9 [required by merlin]<br></div>
- install ocp-indent.1.4.2<div class=""><br>
- install zed.1.3 [required by utop]<br></div><div class="">
- install yojson.1.1.8 [required by merlin]<br>
- install lambda-term.1.6 [required by utop]<br></div>
- install merlin.1.7.1<br>
- install utop.1.15<br>
20 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove<div class=""><br>
<br>
=-=-= Installing base-bigarray.base =-=-=<br>
Installing base-bigarray.base.<br>
<br>
=-=-= Installing base-threads.base =-=-=<br>
Installing base-threads.base.<br>
<br>
=-=-= Installing base-unix.base =-=-=<br>
Installing base-unix.base.<br>
<br>
=-=-= Installing camlp4.4.01.0 =-=-=<br>
Installing camlp4.4.01.0.<br>
<br>
=-=-= Installing ocamlfind.1.5.2 =-=-=<br>
Building ocamlfind.1.5.2:<br>
./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<br>
make all<br>
make opt<br>
make install<br></div>
[ERROR] The compilation of ocamlfind.1.5.2 failed.<br>
Removing ocamlfind.1.5.2.<br>
ocamlfind remove bytes<div class=""><br>
./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<br></div>
make uninstall<br>
<br>
[ERROR] Due to some errors while processing ocamlfind.1.5.2, the following actions will NOT proceed:<br>
- install merlin.1.7.1<br>
- install menhir.20130912<br>
- install lambda-term.1.6<br>
- install biniou.1.0.9<br>
- install utop.1.15<br>
- install lwt.2.4.5<br>
- install zed.1.3<br>
- install cppo.0.9.4<br>
- install camomile.0.8.5<br>
- install ocp-indent.1.4.2<br>
- install yojson.1.1.8<br>
- install ocp-build.1.99.8-beta<br>
- install react.1.2.0<br>
- install easy-format.1.0.2<br>
- install cmdliner.0.9.5<br>
<br>
===== ERROR while installing ocamlfind.1.5.2 =====<br>
# opam-version 1.1.1<br>
# os linux<br>
# command make install<br>
# path /home/jm/.opam/4.01.0/build/ocamlfind.1.5.2<br>
# compiler 4.01.0<br>
# exit-code 2<br>
# env-file /home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/ocamlfind-798-9ace5e.env<br>
# stdout-file /home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/ocamlfind-798-9ace5e.out<br>
# stderr-file /home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/ocamlfind-798-9ace5e.err<br>
### stdout ###<br>
# ...[truncated]<br>
# cd "/home/jm/.opam/4.01.0/lib/ocaml/compiler-libs/"; \<br>
# cp topdirs.cmi toploop.cmi "/home/jm/.opam/4.01.0/lib/findlib/"; \<br>
# fi<br>
# make[1]: Leaving directory '/home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/src/findlib'<br>
# make[1]: Entering directory '/home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/src/bytes'<br>
# ocamlbuild -classic-display -no-links bytes.cmi bytes.cma<br>
# cd _build/ && ocamlfind install bytes ../META bytes.cmi bytes.cma -optional bytes.cmx bytes.a bytes.cmxa bytes.cmxs<br>
# Makefile:22: recipe for target 'install' failed<br>
# make[1]: Leaving directory '/home/jm/.opam/4.01.0/build/ocamlfind.1.5.2/src/bytes'<br>
# Makefile:20: recipe for target 'install' failed<br>
### stderr ###<br>
# Makefile:150: depend: No such file or directory<br>
# ocamlfind: Package bytes is already installed<br>
# - (file /home/jm/.opam/4.01.0/lib/bytes/META already exists)<br>
# make[1]: *** [install] Error 2<br>
# make: *** [install] Error 2<div class=""><br>
<br>
'opam update -u' failed.<br>
<br>
-- <br>
John Magolske<br>
<a href="http://B79.net/contact" target="_blank">http://B79.net/contact</a><br>
</div><p></p>
</div><div class="">
<div style="color:#fff;min-height:0">__._,_.___</div>
<div style="clear:both"> </div>
<div style="margin-top:10px">
<hr style="min-height:2px;border-width:0;color:#e3e3e3;background-color:#e3e3e3">
Posted by: John Magolske <<a href="mailto:listmail@b79.net" target="_blank">listmail@b79.net</a>> <hr style="min-height:2px;border-width:0;color:#e3e3e3;background-color:#e3e3e3">
</div>
<div style="clear:both"> </div>
</div><table cellspacing="4px" style="margin-top:10px;margin-bottom:10px;color:#2d50fd">
<tbody>
<tr>
<td style="font-size:12px;font-family:arial;font-weight:bold;padding:7px 5px 5px">
<a style="text-decoration:none;color:#2d50fd" href="https://groups.yahoo.com/neo/groups/ocaml_beginners/conversations/messages/14105;_ylc=X3oDMTJxMzJyamh2BF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BG1zZ0lkAzE0MTA1BHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTQwOTU0ODgxMw--?act=reply&messageNum=14105" target="_blank">Reply via web post</a>
</td>
<td>•</td>
<td style="font-size:12px;font-family:arial;padding:7px 5px 5px">
<a href="mailto:listmail@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" style="text-decoration:none;color:#2d50fd" target="_blank">
Reply to sender </a>
</td>
<td>•</td>
<td style="font-size:12px;font-family:arial;padding:7px 5px 5px">
<a href="mailto:ocaml_beginners@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" style="text-decoration:none;color:#2d50fd" target="_blank">
Reply to group </a>
</td>
<td>•</td>
<td style="font-size:12px;font-family:arial;padding:7px 5px 5px">
<a href="https://groups.yahoo.com/neo/groups/ocaml_beginners/conversations/newtopic;_ylc=X3oDMTJlNDhwdjA1BF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTQwOTU0ODgxMw--" style="text-decoration:none;color:#2d50fd" target="_blank">Start a New Topic</a>
</td>
<td>•</td>
<td style="font-size:12px;font-family:arial;padding:7px 5px 5px;color:#2d50fd">
<a href="https://groups.yahoo.com/neo/groups/ocaml_beginners/conversations/topics/14102;_ylc=X3oDMTM2azFuZXBrBF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BG1zZ0lkAzE0MTA1BHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTQwOTU0ODgxMwR0cGNJZAMxNDEwMg--" style="text-decoration:none;color:#2d50fd" target="_blank">Messages in this topic</a>
(3)
</td>
</tr>
</tbody>
</table><div class="">
<div style="font-family:Verdana;font-size:12px;padding:15px 0">
Archives up to December 31, 2011 are also downloadable at <a href="http://www.connettivo.net/cntprojects/ocaml_beginners" target="_blank">http://www.connettivo.net/cntprojects/ocaml_beginners</a><br>
The archives of the very official ocaml list (the seniors' one) can be found at <a href="http://caml.inria.fr" target="_blank">http://caml.inria.fr</a><br>
Attachments are banned and you're asked to be polite, avoid flames etc.
</div>
<div style="background-color:#f2f2f2;font-family:Verdana;font-size:10px;margin-bottom:10px;padding:10px">
<span style="font-weight:bold;color:#333;text-transform:uppercase"><a href="https://groups.yahoo.com/neo/groups/ocaml_beginners/info;_ylc=X3oDMTJldXB1azloBF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTQwOTU0ODgxMw--" style="text-decoration:none" target="_blank">Visit Your Group</a></span>
<ul style="list-style-type:none;margin:0;padding:0;display:inline">
</ul>
</div>
<div style="font-family:Arial;font-size:11px;margin-top:5px;padding:0 2px 0 0;clear:both">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJkY244OGNmBF9TAzk3MzU5NzE0BGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNDA5NTQ4ODEz" style="float:left" target="_blank"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="137" alt="Yahoo! Groups" style="border:0"></a>
<div style="color:#747575;float:right"> • <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration:none" target="_blank">Privacy</a> • <a href="mailto:ocaml_beginners-unsubscribe@yahoogroups.com?subject=Unsubscribe" style="text-decoration:none" target="_blank">Unsubscribe</a> • <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration:none" target="_blank">Terms of Use</a> </div>
</div>
<br>
</div></div>
<div style="width:160px;float:right;clear:none;margin:0 0 25px 0;background:#fff">
<div>
</div>
</div>
<div style="clear:both;color:#fff;font-size:1px">.</div>
</div>
<img src="http://geo.yahoo.com/serv?s=97359714/grpId=4999194/grpspId=1705006764/msgId=14105/stime=1409548813" width="1" height="1"> <br>
<img src="http://y.analytics.yahoo.com/fpc.pl?ywarid=515FB27823A7407E&a=10001310322279&js=no&resp=img" width="1" height="1">
<div style="color:#fff;min-height:0">__,_._,___</div>
</div>
</blockquote></div><br></div></div>