From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Hendrik Boom <hendrik@topoi.pooq.com>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Installing 4.02
Date: Sun, 6 Mar 2016 09:15:26 -0500 [thread overview]
Message-ID: <CAPFanBH3VWfq9jFJWSs=MtDAJrBC3SCK-X7e7kBsF=1WzsGnPw@mail.gmail.com> (raw)
In-Reply-To: <20160306112345.GA20220@topoi.pooq.com>
[-- Attachment #1: Type: text/plain, Size: 1964 bytes --]
I've been using
eval $(opam config env)
myself. Maybe this would be less error-prone to document?
(Is it less portable to other shells?)
On Sun, Mar 6, 2016 at 6:23 AM, Hendrik Boom <hendrik@topoi.pooq.com> wrote:
> On Sun, Mar 06, 2016 at 10:22:21AM +0000, Mick Sulley wrote:
> > Hi,
> >
> > Totally new to OCaml. I am trying to install OCaml version 4.02 or
> > higher on a Raspberry Pi running Raspbian. I have OPAM and OCaml
> > 4.01 installed but if I enter
> > opam switch 4.02.1
> > I get
> > pi@raspberrypi:~/geneweb $ opam switch 4.02.1
> > # To setup the new switch in the current shell, you need to run:
> > eval `opam config env`
> >
>
> I've just struggled with this stuff on a 32-bit x86 Linux.
> The opam switch command alters the dotfiles (things like .bashrd)
> so that the next time you log in or start a shell, the environment
> variables are set to the new switch.
>
> opam config env
>
> generates the list of command you saw below:
>
> > I then try -
> > pi@raspberrypi:~/geneweb $ eval 'opam config env'
> > CAML_LD_LIBRARY_PATH="/home/pi/.opam/4.02.1/lib/stublibs"; export
> > CAML_LD_LIBRARY_PATH;
> > MANPATH=":/home/pi/.opam/4.02.1/man"; export MANPATH;
> > PERL5LIB="/home/pi/.opam/4.02.1/lib/perl5"; export PERL5LIB;
> > OCAML_TOPLEVEL_PATH="/home/pi/.opam/4.02.1/lib/toplevel"; export
> > OCAML_TOPLEVEL_PATH;
> >
> PATH="/home/pi/.opam/4.02.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games";
> > export PATH;
>
> The eval command
>
> > eval `opam config env`
>
> is *supposed* to get them executed in the present shell.
> If it doesn't work, your eval isn't the same as mine, and I suggest you
> log in again, or start a new shell.
>
> -- hendrik
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
[-- Attachment #2: Type: text/html, Size: 3007 bytes --]
next prev parent reply other threads:[~2016-03-06 14:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-06 10:22 Mick Sulley
2016-03-06 11:20 ` Leo White
2016-03-06 11:23 ` Hendrik Boom
2016-03-06 14:15 ` Gabriel Scherer [this message]
2016-03-07 2:30 ` Goswin von Brederlow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPFanBH3VWfq9jFJWSs=MtDAJrBC3SCK-X7e7kBsF=1WzsGnPw@mail.gmail.com' \
--to=gabriel.scherer@gmail.com \
--cc=caml-list@inria.fr \
--cc=hendrik@topoi.pooq.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox