Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Helmut Brandl <helmut.brandl@gmx.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Errors in installing 'lwt'
Date: Mon, 20 Oct 2014 11:24:10 -0500	[thread overview]
Message-ID: <5445372A.3050702@gmx.net> (raw)
In-Reply-To: <5445297E.4000800@inria.fr>

Thanks for the hint Francois. The command sequence you proposed worked 
successfully.

However can you explain to me what I have now. I think I have now two 
versions of the ocaml compiler installed, one system wide (4.02.0) and 
one installed by opam (4.01.0).

If I use a fresh shell I still get version 4.02 until I issue the 'eval' 
command to get the new paths. If I try to switch back to 4.02 opam tries 
to install 4.02 from scratch, i.e. it does not use the system installation.

Is there any possibility to switch back to the system installation in 
the same shell or do I need to use a fresh shell?

I still feel uncomfortable because I don't know why the installation of 
'lwt' fails with my system installation of ocaml.

Regards
Helmut


On 10/20/2014 10:25 AM, Francois Berenger wrote:
> On 10/20/2014 05:19 PM, Helmut Brandl wrote:
>> How do I install ocaml by opam? The command 'opam install ocaml' does
>> not work.
>
> opam switch 4.01.0 # just an example version
> eval `opam config env` # use it
> opam install lwt # your initial goal
>
>> What is the difference? My ocaml system works fine and I don't want to
>> compromise it because I need it.
>
> It won't be compromised in any way, opam will just ignore it.
>
>> Can 2 versions of ocaml coexist without any interference?
>
> That's one of the many goals of OPAM, I believe.
> OPAM's switch command allows you to "jump" between ocaml versions.
>
>> On 10/20/2014 10:08 AM, Francois Berenger wrote:
>>> As a workaround, I would recommend having a fresh ocaml installed by
>>> opam.
>>>
>>> It always work nicer in this way, in my experience (I use the ocaml
>>> installed by opam switching, not the one installed system-wide).
>>>
>>> On 10/20/2014 04:56 PM, Helmut Brandl wrote:
>>>> My platform is the 32bit version of the archlinux distribution on 
>>>> x86. I
>>>> have got the ocaml base installation and opam via the distribution and
>>>> tried to install packages via 'opam install ...'.
>>>>
>>>> Everything went fine until 'opam' tried to install 'lwt'.
>>>>
>>>>
>>>>
>>>> On 10/20/2014 09:50 AM, John Whitington wrote:
>>>>> Hi,
>>>>>
>>>>> Helmut Brandl wrote:
>>>>>> Does not work either. 'opam' reinstalls 'camlp4' without any 
>>>>>> problems
>>>>>> but then fails installing 'lwt'.
>>>>>
>>>>> You haven't mentioned what platform you're using. There's a known
>>>>> issue on OS X with 2.4.6, for example:
>>>>>
>>>>> https://github.com/ocsigen/lwt/issues/91
>>>>>
>>>>> Thanks,
>>>>>
>>>>
>>>
>>
>>
>


  reply	other threads:[~2014-10-20 16:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-20 13:59 Helmut Brandl
2014-10-20 14:14 ` Török Edwin
2014-10-20 15:06   ` helmut.brandl
2014-10-20 16:21     ` Török Edwin
2014-10-20 16:37       ` Helmut Brandl
2014-10-20 17:59         ` Török Edwin
2014-10-21  8:18           ` Nicolas Boulay
     [not found]             ` <54461AFF.9010407@inria.fr>
2014-10-21 20:55               ` Nicolas Boulay
2014-10-21 21:25                 ` Török Edwin
     [not found] ` <544518F1.4050907@inria.fr>
     [not found]   ` <544519B6.6050007@gmx.net>
     [not found]     ` <54451A2A.6010300@inria.fr>
2014-10-20 14:44       ` Helmut Brandl
2014-10-20 14:50         ` John Whitington
2014-10-20 14:56           ` Helmut Brandl
2014-10-20 15:03             ` Helmut Brandl
2014-10-20 15:08             ` Francois Berenger
2014-10-20 15:19               ` Helmut Brandl
2014-10-20 15:25                 ` Francois Berenger
2014-10-20 16:24                   ` Helmut Brandl [this message]
2014-10-20 16:50                     ` Marek Kubica
2014-10-20 15:30                 ` Daniel Bünzli

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=5445372A.3050702@gmx.net \
    --to=helmut.brandl@gmx.net \
    --cc=caml-list@inria.fr \
    /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