From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 25DC07FAED for ; Fri, 14 Nov 2014 10:15:47 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.07,384,1413237600"; d="scan'208";a="88110264" Received: from meleze.ens.fr (HELO [129.199.99.114]) ([129.199.99.114]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 14 Nov 2014 10:15:46 +0100 Message-ID: <5465C842.6000103@inria.fr> Date: Fri, 14 Nov 2014 10:15:46 +0100 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <20141113154028.0ae9e90c.itz@buug.org> In-Reply-To: <20141113154028.0ae9e90c.itz@buug.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] How to properly do "opam switch"? On 11/14/2014 12:40 AM, Ian Zimmerman wrote: > After I do "opam switch 4.02.1" and perform the environment > incantations, # I guess you mean: opam switch 4.02.1 eval `opam config env` > I have a new subtree ~/.opam/4.02.1 with its own bin, man > etc. subdirs, and my environment variables now point to it: > > [26+0]~$ env | fgrep -i opam > CAML_LD_LIBRARY_PATH=/home/itz/.opam/4.02.1/lib/stublibs > MANPATH=:/home/itz/.opam/4.02.1/man:/opt/posix/man > PERL5LIB=/home/itz/.opam/4.02.1/lib/perl5 > OCAML_TOPLEVEL_PATH=/home/itz/.opam/4.02.1/lib/toplevel > PATH=/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/bin:/usr/lib/ccache:/opt/ghc/7.8.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/games > OPAMKEEPBUILDDIR=y > OPAMCOLOR=never > > 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 opam is not installed by opam. If you mean you want all of your previously installed packages, you can do that (using the previous switch you were using): opam switch export file.export opam switch 4.02.1 eval `opam config env` opam switch import file.export > a. recompile any packages with opam, or even > > b. get documentation on how to get out of this state :-P > > What is the proper way to handle this, as I must have missed it? -- Regards, Francois.