Loading ...
Sorry, an error occurred while loading the content.

14047Re: "ocaml_beginners"::[] cairo pdf

Expand Messages
  • Francois Berenger
    Apr 22, 2014
      On 2014年04月23日 02:50, Hendrik Boom wrote:
      > On Tue, Apr 22, 2014 at 07:06:20PM +0200, Christophe Troestler wrote:
      >
      >> opam install cairo2
      >
      > I had to do this twice. The first time I got
      >
      > default Downloading https://opam.ocaml.org/archives/cairo2.0.4.6+opam.tar.gz
      > Downloading https://opam.ocaml.org/archives/cairo2.0.4.6+opam.tar.gz
      >
      >
      > ===== ERROR while installing cairo2.0.4.6 =====
      > Could not get the source for cairo2.0.4.6:
      > # opam-version 1.1.1
      > # os linux
      > Cannot download https://opam.ocaml.org/archives/cairo2.0.4.6+opam.tar.gz, please check your connection settings.

      Install curl on your machine (sudo aptitude install curl).

      I don't know why, but OPAM doesn't like wget as much as it likes curl.

      > The former state can be restored with opam switch import -f "/home/hendrik/.opam/system/backup/state-20140322172340.export"
      > 'opam install cairo2' failed.
      >
      >
      > But the second time it installed OK.
      >
      > Next, I tried a build:
      >
      > ocamlfind ocamlopt -package cairo2 grouptable.ml -o grouptable
      > File "grouptable.ml", line 1:
      > Error: No implementations provided for the following modules:
      > Cairo referenced from grouptable.cmx
      > make: *** [pdf] Error 2
      > hendrik@notlookedfor:~/dv/fun/group$
      >
      > Evidently, I still hae something wrong. I do still have to
      >
      > open cairo
      >
      > at the start of my code, right? If I don't I get the other error:
      >
      > hendrik@notlookedfor:~/dv/fun/group$ make pdf
      > ocamlfind ocamlopt -package cairo2 grouptable.ml -o grouptable
      > File "grouptable.ml", line 61, characters 22-32:
      > Error: Unbound value get_target
      > make: *** [pdf] Error 2
      >
      > Could something be wrong with get_target?
      >
      >


      --
      Best regards,
      Francois Berenger.
    • Show all 6 messages in this topic