English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ubuntu ocaml missing unix module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-02-25 (04:10)
From: Erik de Castro Lopo <ocaml-erikd@m...>
Subject: Re: [Caml-list] ubuntu ocaml missing unix module
Brendan Miller wrote:

> has anyone else run into this? on ocaml 3.08.3-3ubuntu5(breazy) the
> implementation of the Unix module doesn't seem to be included.

I'm running Breezy and I've got:

    erikd@mingus > ls -l /usr/lib/ocaml/3.08.3/unix.*
    -rw-r--r--  1 root root 59880 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.a
    -rw-r--r--  1 root root 22277 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.cma
    -rw-r--r--  1 root root 20956 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.cmi
    -rw-r--r--  1 root root 10054 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.cmx
    -rw-r--r--  1 root root   698 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.cmxa
    -rw-r--r--  1 root root 52002 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.mli

> I get this
> error when trying to use functions in UnixLabels or Unix
> No implementations provided for the following modules:
>   UnixLabels referenced from net.cmx
> anyone know how to fix this? I'm a little frustrated, as I don't want to
> remove this package and mess up everything that depends on it...

I've never used the UnixLabels module, but I do know that if I want
to use the Unix module (and some others like Str) I have to explicitly
link it by adding unix.cmxa to the link line so that I have something
like this in my Makefile:

    $(OCAMLOPT) -o <target exeutable> str.cmxa <list of .cmx files>

  Erik de Castro Lopo
Dar al-Harb : http://en.wikipedia.org/wiki/Dar_al-Harb