Install ocaml bytes module on debian?

1.3k views Asked by At

I am trying to install liquidsoap from source. While execution ./configure script, I saw following error:

****** Configuring OCaml-cry

./configure --with-cry-dir=../ocaml-cry/src
configure: WARNING: unrecognized options: --with-cry-dir
configuring ocaml-cry 0.3.0
....
checking for ocamlfind... ocamlfind
checking for ocaml standard library path... /usr/lib/ocaml
checking for caml/threads.h... yes
checking for gcc option to produce PIC... -fPIC
checking for ocaml bytes module... configure: error: Not found.

I tried to find OCaml bytes module.. but I can't, as in attitude, as in google. How can I resolve this dependency?

2

There are 2 answers

2
Jeffrey Scofield On

As @Théo pointed out, the Bytes module is new in OCaml 4.02.0.

Initially it's mostly a synonym for the String module.

If you add this:

module Bytes = String

to your code you might get it to compile.

Or you could update to a newer OCaml version.

0
Goswin von Brederlow On

For those not having 4.02 yet:

https://github.com/chambart/ocaml-bytes