Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.