* [Caml-list] How to properly do "opam switch"?
@ 2014-11-13 23:40 Ian Zimmerman
2014-11-14 9:15 ` Francois Berenger
0 siblings, 1 reply; 3+ messages in thread
From: Ian Zimmerman @ 2014-11-13 23:40 UTC (permalink / raw)
To: OCaml mailing list
After I do "opam switch 4.02.1" and perform the environment
incantations, 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
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?
--
Please *no* private copies of mailing list or newsgroup messages.
Local Variables:
mode:claws-external
End:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] How to properly do "opam switch"?
2014-11-13 23:40 [Caml-list] How to properly do "opam switch"? Ian Zimmerman
@ 2014-11-14 9:15 ` Francois Berenger
2014-11-17 10:07 ` Amir Chaudhry
0 siblings, 1 reply; 3+ messages in thread
From: Francois Berenger @ 2014-11-14 9:15 UTC (permalink / raw)
To: caml-list
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] How to properly do "opam switch"?
2014-11-14 9:15 ` Francois Berenger
@ 2014-11-17 10:07 ` Amir Chaudhry
0 siblings, 0 replies; 3+ messages in thread
From: Amir Chaudhry @ 2014-11-17 10:07 UTC (permalink / raw)
To: caml-list@inria.fr List
On 14 Nov 2014, at 09:15, Francois Berenger <francois.berenger@inria.fr> wrote:
> 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
There's some more information about opam switch on the website, which people 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-17 10:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-13 23:40 [Caml-list] How to properly do "opam switch"? Ian Zimmerman
2014-11-14 9:15 ` Francois Berenger
2014-11-17 10:07 ` Amir Chaudhry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox