Re: cairo pdf

Christophe Troestler <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Organization University of Mons
Message-ID <20140422.190620.811221976804280486.Christophe.Troestler@umons.ac.be>
On Tue, 22 Apr 2014 12:58:32 -0400, Hendrik Boom wrote:
> 
> On Tue, Apr 22, 2014 at 06:33:42PM +0200, Christophe Troestler wrote:
> > On Tue, 22 Apr 2014 12:25:42 -0400, Hendrik Boom wrote:
> > >
> > > > ocamlfind ocamlopt -package cairo2 wander.ml -o wander
> > >
> > > Thank you. This all looks good. Unfortunately, when I try it I get
> > >
> > > hendrik@notlookedfor:~/dv/fun/group$ ocamlfind ocamlopt -package cairo2
> > > wander.ml -o wander
> > > ocamlfind: Package `cairo2' not found
> >
> > opam install cairo2
> >
> > (you use opam right?)
> 
> Not yet.
> 
> It's part of Debian, though, so it'll probably be a two-liner:
> 
> aptitude install opam
> opam install cairo2
> 
> As root, I presume?

To develop with Cairo, you need to install the C devel lib:

    aptitude install libcairo2-dev   # as root

However, you also need the OCaml bindings:

    aptitude install opam   # as root

and then, as a normal user:

    opam init  # one time only
    opam install cairo2

That's it!

Best,
C.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.