Skip to content
Vladimir Korolyov edited this page Dec 12, 2015 · 6 revisions

Making sulci work on Debian

Install OCaml and Opam packages:

aptitude install ocaml opam m4 libgdbm-dev

Initialize local Opam package repository:

opam init

Install some Opam packages:

opam install pcre ulex ocamlnet cryptokit json-wheel json-static sqlite3 gdb text gdm

Clone sulci:

git clone https://github.com/programming-cjr/sulci

Configure sulci (hint setup.ml with Opam's bindir, otherwise it tries to install binaries to /usr/local):

cd sulci
ocaml setup.ml -configure --bindir $(opam config var bin)

Result:

E: Cannot find findlib package erm_brainfuck
E: Cannot find findlib package erm_dehtml
E: Cannot find findlib package erm_logger
E: Cannot find findlib package erm_scheduler
E: Cannot find findlib package erm_strftime
E: Cannot find findlib package erm_treap
E: Cannot find findlib package erm_xml
E: Cannot find findlib package erm_xmpp
E: Failure("8 configuration errors")

Need more ermine-born packages! But those are not packaged in the Opam common repository. So install them manually with a bash command:

for PNAME in brainfuck dehtml logger scheduler strftime treap xml xmpp; do
   git clone https://github.com/ermine/$PNAME;
   cd $PNAME;
   ocaml setup.ml -configure;
   ocaml setup.ml -build;
   ocaml setup.ml -install;
   cd ..;
done

So now it builds:

ocaml setup.ml -configure
ocaml setup.ml -build

Install it:

$ ocaml setup.ml -install
E: Failure("Wildcard '_build/tlds/tlds.db' doesn't match any files")

As for now fails with a bug.

Clone this wiki locally