Deducteam / Dedukti

Implementation of the λΠ-calculus modulo rewriting

Home Page:https://deducteam.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dedukti install

FilaliM opened this issue · comments

Hello,
I have a problem when installing dedukti:
git clone https://github.com/Deducteam/Dedukti.git
Clonage dans 'Dedukti'...
remote: Enumerating objects: 18662, done.
remote: Counting objects: 100% (1121/1121), done.
remote: Compressing objects: 100% (468/468), done.
remote: Total 18662 (delta 540), reused 1023 (delta 514), pack-reused 17541
Réception d'objets: 100% (18662/18662), 6.56 Mio | 9.89 Mio/s, fait.
Résolution des deltas: 100% (12670/12670), fait.

% cd Dedukti% make
File "api/meta.ml", line 52, characters 2-13:
Error: Unbound module Option
make: *** [bin] Error 1

Then if I try to copy the file option.ml (from ocaml lib) to the directory api.
I get the error:
make
File "commands/dkcheck.ml", line 118, characters 2-7:
Error: Unbound module Cmd
File "commands/dkdep.ml", line 75, characters 2-5:
Error: Unbound module Cmd
File "commands/dkmeta.ml", line 117, characters 2-14:
Error: Unbound module Cmdliner.Cmd
File "commands/dkpretty.ml", line 28, characters 2-5:
Error: Unbound module Cmd
File "commands/dkprune.ml", line 279, characters 2-14:
Error: Unbound module Cmdliner.Cmd
File "commands/dktop.ml", line 15, characters 2-14:
Error: Unbound module Cmdliner.Cmd
make: *** [bin] Error 1

thanks for the help.

Hello,
All the problem you mentioned are due to missing or outdated dependencies (module Option appeared in Ocaml 4.08, and you are missing OCaml module cmdliner).
The easiest way to install these dependencies is through Opam:

$ git clone https://github.com/Deducteam/Dedukti.git
[...]
$ cd Dedukti
$ opam install . --deps-only
[...]
$ make

If you prefer not using opam, the dependencies and version constraints are listed in dedukti.opam.

Thanks it works.