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

Already on GitHub? Sign in to your account

ocamlinit "Canot find file topfind" #140

ajendrex opened this Issue Apr 26, 2011 · 3 comments


None yet
3 participants


On Arch LInux, I have installed:

ocaml-svn 11008-1
ocaml-batteries 1.3.0-1
ocaml-camomile 0.8.2-1
ocaml-findlib 1.2.7-1
ocaml-ounit 1.1.0-4

I copied the ocamlinit file to ~/.ocamlinit and I have the following error when starting ocaml

[13:01]hurbina@tito ocaml-tutorial $ ocaml
Objective Caml version 3.13.0+dev3 (2011-03-07)

Cannot find file topfind.
File "/home/hurbina/.ocamlinit", line 7, characters 52-77:
Error: Unbound module Findlib

How can i fix it?


gasche commented Apr 26, 2011

Perhaps you should use the batteries mailing list for general installation questions. It's the "batteries-discuss" list on the forge page.

(Regarding your issue : it means that findlib wasn't properly installed; topfind is not related to Batteries, it's a component of findlib / ocamlfind.)


gasche commented Apr 26, 2011

It probably means your "findlib" installation has a problem.
"topfind" is not provided by batteries, it is a byproduct of the ocamlfind /
findlib installation.


thelema commented Apr 26, 2011

Your ocaml-findlib package should have installed a /usr/lib/ocaml/topfind file. As it seems to have not done so, you should either install findlib from source or complain to whoever packaged it to fix this.

@thelema thelema closed this Apr 26, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment