1

I have used ocamlbrew to install ocaml and associated utilities. I had one earlier installation also. As said in the documentation, I have used /opt for installing ocamlbrew. But when I run utop as a normal user, I am getting error

Fatal error: cannot load shared library dllunix
Reason: /usr/local/lib/ocaml/stublibs/dllunix.so: undefined symbol: caml_stat_alloc_string

Also

ldconfig -p | grep dllunix

returns nothing

user567879
  • 5,139
  • 20
  • 71
  • 105
  • 1
    This doesn't answer your question, but I recommend you use opam to install OCaml tools and libraries. – Ashish Agarwal Jan 02 '14 at 12:10
  • use **opam** for everything – Jackson Tale Jan 02 '14 at 15:07
  • But the problem is I couldnt install Opam from source. Its throwing error. SO I switched to Ocamlbrew – user567879 Jan 02 '14 at 17:37
  • i think you should go back to figuring out your issue with Opam. You'll be much happier with it. Start by answering the question posed to you in that thread you started. – nlucaroni Jan 02 '14 at 22:01
  • The main intention of ocamlbrew at this point it to make it (slightly) easier to install ocaml + opam from source. opam is definitely the way to go when setting up and using OCaml. – hcarty Jan 03 '14 at 12:49

1 Answers1

0

This instructions are very good (and work): https://github.com/realworldocaml/book/wiki/Installation-Instructions

Install OPAM from brew, then use it for everything, including OCaml. It's best if you uninstall OCaml you've installed through brew first.

Vitaly Osipov
  • 1,036
  • 6
  • 14