Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I already have the OCaml language working in my Ubuntu 12.04 installation, but I don't believe that it comes with the threads library. Does anyone know I can get threads working?

share|improve this question

1 Answer 1

Found the answer, so if anyone else is having this problem read on:

NOTE: This only allows thread compatibility in a top-level. Open Terminal and enter the following command:

ocamlmktop -thread unix.cma threads.cma -o ocaml_threads

and then to start a top-level with threads:

./ocaml_threads -I +threads

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.