Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dbm changed it's default behaviour #3

Open
balodja opened this issue Dec 12, 2015 · 1 comment
Open

Dbm changed it's default behaviour #3

balodja opened this issue Dec 12, 2015 · 1 comment

Comments

@balodja
Copy link
Member

balodja commented Dec 12, 2015

While trying to install sulci on debian I get this error:

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

Contents of _build/tlds is as follows:

$ ls _build/tlds/*
_build/tlds/createtlds.annot
_build/tlds/createtlds.cmi
_build/tlds/createtlds.cmo
_build/tlds/createtlds.cmt
_build/tlds/createtlds.cmx
_build/tlds/createtlds.ml
_build/tlds/createtlds.ml.depends
_build/tlds/createtlds.native
_build/tlds/createtlds.o
_build/tlds/tlds.dir
_build/tlds/tlds.pag
_build/tlds/tlds.txt

It looks like install script expected tlds.db(database of gdbm format), but instead of it there are tlds.dir and tlds.pag(database of dbm/ndbm format). Moreover the database is generated by the executable createtld(sourcefile), which is invoked by the specialized build script myocamlbuild.ml(link).

So it looks like default database format has changed. This must be workarounded somehow.

As a bonus a link to the gdbm manual: www.gnu.org.ua/software/gdbm/manual/gdbm.html (singlepaged).

@balodja
Copy link
Member Author

balodja commented Dec 12, 2015

That's not changes in default behavior. That's GNU attempt to support historic Berkley DB in it's genuine look. CamlDBM should be patched to refer to GDBM in Linux systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant