caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: oliver <oliver@first.in-berlin.de>
To: Francois Berenger <berenger@riken.jp>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Old and new OCaml installed on same machine?
Date: Mon, 25 Feb 2013 03:09:09 +0100	[thread overview]
Message-ID: <20130225020909.GA12988@siouxsie> (raw)
In-Reply-To: <512ABDCA.1020200@riken.jp>

On Mon, Feb 25, 2013 at 10:26:34AM +0900, Francois Berenger wrote:
> On 02/25/2013 09:50 AM, oliver wrote:
> >Hello Roberto,
> >
> >
> >On Mon, Feb 18, 2013 at 08:34:35AM +0100, Roberto Di Cosmo wrote:
> >>Dear Oliver,
> >>     just use the Opam package manager for OCaml and you will be fine.
> >[...]
> >
> >
> >Do you mean something like ths following?!
> >
> >
> >===================================================================
> >oliver@siouxsie:~$ . ocamlbrew/ocaml-4.00.1/etc/ocamlbrew.bashrc
> >oliver@siouxsie:~$ opam install ocurl
> >The following actions will be performed:
> >  - install ocurl.0.5.4
> >1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
> >
> >=-=-= ocurl.0.5.4 =-=-=
> >The archive for ocurl.0.5.4 is in the local cache.
> >Extracting /home/oliver/ocamlbrew/ocaml-4.00.1/.opam/archives/ocurl.0.5.4+opam.tar.gz.
> >Building ocurl.0.5.4:
> >   ./configure
> >   make
> >   make install
> >The compilation of ocurl.0.5.4 failed.
> >Uninstalling ocurl.0.5.4:
> >   ocamlfind remove curl
> >
> >
> >==== ERROR [while installing ocurl.0.5.4] ====
> ># command         make
> ># path            /home/oliver/ocamlbrew/ocaml-4.00.1/.opam/4.00.1/build/ocurl.0.5.4
> ># exit-code       2
> ># env-file        /home/oliver/ocamlbrew/ocaml-4.00.1/.opam/4.00.1/build/ocurl.0.5.4/ocurl-1872ec.env
> ># stdout-file     /home/oliver/ocamlbrew/ocaml-4.00.1/.opam/4.00.1/build/ocurl.0.5.4/ocurl-1872ec.out
> ># stderr-file     /home/oliver/ocamlbrew/ocaml-4.00.1/.opam/4.00.1/build/ocurl.0.5.4/ocurl-1872ec.err
> >### stdout ###
> >make[1]: Entering directory `/home/oliver/ocamlbrew/ocaml-4.00.1/.opam/4.00.1/build/ocurl.0.5.4'
> >make[1]: Leaving directory `/home/oliver/ocamlbrew/ocaml-4.00.1/.opam/4.00.1/build/ocurl.0.5.4'
> >make[1]: Entering directory `/home/oliver/ocamlbrew/ocaml-4.00.1/.opam/4.00.1/build/ocurl.0.5.4'
> >ocamlc.opt -c  curl.mli -o curl.cmi
> >ocamlc.opt -c  curl.ml -o curl.cmo
> >ocamlc.opt -c -ccopt "-DHAVE_CONFIG_H -Wall" curl-helper.c
> >make[1]: Leaving directory `/home/oliver/ocamlbrew/ocaml-4.00.1/.opam/4.00.1/build/ocurl.0.5.4'
> >### stderr ###
> >...[truncated]
> 
> In the truncated part it says (at least on my machine)
> 
> curl-helper.c:12:23: fatal error: curl/curl.h: No such file or directory
> 
> Which means you need to install the system package that will install
> this file.
[...]

Not me... opam should do this.

The OCaml 4.00 is installed by ocamlbrew/opam.

On my machine I have 3.11.2 from the old Linux dsitribution.

If ocamlbrew/OPAM is "the tool of choice" to install all versions of OCaml
locally (in my $HOME) and if it is able to handle different versions of
OCaml, and if it is able to install libraries (like ocurl),
then the problem should not have occured.

I have
  libcurl-ocaml
and
  libcurl-ocaml-dev
installed.

But even if not, OPAM should install the needed stuff.
Thats what the command "opam install ocurl" has to do.

If it fails, the infrastructure is not working
properly.

Ciao,
   Oliver

  reply	other threads:[~2013-02-25  2:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-18  7:22 oliver
2013-02-18  7:34 ` Roberto Di Cosmo
2013-02-18 14:16   ` oliver
2013-02-25  0:50   ` oliver
2013-02-25  1:26     ` Francois Berenger
2013-02-25  2:09       ` oliver [this message]
2013-02-25  8:07         ` Gabriel Kerneis
2013-02-25  9:03           ` Gabriel Scherer
2013-02-27  1:28     ` oliver
2013-02-18  7:43 ` Francois Berenger

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=20130225020909.GA12988@siouxsie \
    --to=oliver@first.in-berlin.de \
    --cc=berenger@riken.jp \
    --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;
as well as URLs for NNTP newsgroup(s).