From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 B54787FADE for ; Mon, 17 Nov 2014 11:07:15 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of amc79@cam.ac.uk) identity=pra; client-ip=131.111.8.151; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="amc79@cam.ac.uk"; x-sender="amc79@cam.ac.uk"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of amc79@cam.ac.uk) identity=mailfrom; client-ip=131.111.8.151; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="amc79@cam.ac.uk"; x-sender="amc79@cam.ac.uk"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@ppsw-51.csi.cam.ac.uk) identity=helo; client-ip=131.111.8.151; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="amc79@cam.ac.uk"; x-sender="postmaster@ppsw-51.csi.cam.ac.uk"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At4DAFrIaVSDbwiXnGdsb2JhbABbg2NZuFsGkzyHTgKBGBYBAQEBAREBAQEBAQgLCQkULoQCAQEBAwF+CwsYLlcGE4g4CQ3LBIYCAQEBAQEFAQEBAQEBAQEBAQETBIY+ijE6gy2BHgWXIohekTyIBm0BgkoBAQE X-IPAS-Result: At4DAFrIaVSDbwiXnGdsb2JhbABbg2NZuFsGkzyHTgKBGBYBAQEBAREBAQEBAQgLCQkULoQCAQEBAwF+CwsYLlcGE4g4CQ3LBIYCAQEBAQEFAQEBAQEBAQEBAQETBIY+ijE6gy2BHgWXIohekTyIBm0BgkoBAQE X-IronPort-AV: E=Sophos;i="5.07,402,1413237600"; d="scan'208";a="107565022" Received: from ppsw-51.csi.cam.ac.uk ([131.111.8.151]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Nov 2014 11:07:15 +0100 X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from gw-eduroam.dar.cam.ac.uk ([131.111.194.10]:62704 helo=[192.168.99.20]) by ppsw-51.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587) with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128) id 1XqJDG-00005k-XZ (Exim 4.82_3-c0e5623) for caml-list@inria.fr (return-path ); Mon, 17 Nov 2014 10:07:14 +0000 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) From: Amir Chaudhry In-Reply-To: <5465C842.6000103@inria.fr> Date: Mon, 17 Nov 2014 10:07:14 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20141113154028.0ae9e90c.itz@buug.org> <5465C842.6000103@inria.fr> To: "caml-list@inria.fr List" X-Mailer: Apple Mail (2.1510) Subject: Re: [Caml-list] How to properly do "opam switch"? On 14 Nov 2014, at 09:15, Francois Berenger wr= ote: > On 11/14/2014 12:40 AM, Ian Zimmerman wrote: >> After I do "opam switch 4.02.1" and perform the environment >> incantations, >=20 > # I guess you mean: > opam switch 4.02.1 > eval `opam config env` >=20 >> I have a new subtree ~/.opam/4.02.1 with its own bin, man >> etc. subdirs, and my environment variables now point to it: >>=20 >> [26+0]~$ env | fgrep -i opam >> CAML_LD_LIBRARY_PATH=3D/home/itz/.opam/4.02.1/lib/stublibs >> MANPATH=3D:/home/itz/.opam/4.02.1/man:/opt/posix/man >> PERL5LIB=3D/home/itz/.opam/4.02.1/lib/perl5 >> OCAML_TOPLEVEL_PATH=3D/home/itz/.opam/4.02.1/lib/toplevel >> PATH=3D/home/itz/HOL/bin:/home/itz/.cabal/bin:/home/itz/.opam/4.02.1/bin= :/home/itz/eclipse:/home/itz/src/makefiles:/home/itz/.share/bin:/home/itz/b= in:/usr/lib/ccache:/opt/ghc/7.8.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/gam= es >> OPAMKEEPBUILDDIR=3Dy >> OPAMCOLOR=3Dnever >>=20 >> Unfortunately, this subtree contains _only_ the compiler, and no other >> packages from the earlier (4.01.0) subtree. In particular, not opam >> itself! That means I cannot >=20 > opam is not installed by opam. >=20 > If you mean you want all of your previously installed packages, > you can do that (using the previous switch you were using): >=20 > opam switch export file.export > opam switch 4.02.1 > eval `opam config env` > opam switch import file.export There's some more information about opam switch on the website, which peopl= e might find useful. opam switch: https://opam.ocaml.org/doc/Usage.html#opamswitch FAQ: https://opam.ocaml.org/doc/FAQ.html#Whatisaquotswitchquot (and the two= questions immediately after it) Amir=