Fatal Error Cannot Load Shared Library Dll Unix
Sign in Pricing Blog Support Search GitHub This repository Watch 29 Star 160 Fork 378 ocaml/opam-repository Code Issues 60 Pull requests 16 Projects 0 Wiki Pulse Graphs New issue utop not working after install through opam #584 Closed samoht opened this Issue Apr 2, 2013 · 14 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 6 participants OCaml member samoht commented Apr 2, 2013 Importing https://github.com/OCamlPro/opam/issues/570 To reproduce: Run opam install utop (I did this on a clean install of opam v1.0.0 but I've noticed this problem on prior versions). This'll install packages lwt, among others. Run utop Result: Fatal error: unknown C primitive 'lwt_libev_init' I'm running this on a x86_64 machine running archlinux, with opam v1.0.0 installed through the AUR. I noticed the lwt install contains the configuration flag --disable-libev, which may or may not be related. FYI, installing utop directly from the AUR works fine. Please let me know if you need any additional details. Thanks. samoht referenced this issue in ocaml/opam Apr 2, 2013 Closed utop not working after install through opam #570 OCaml member Chris00 commented Apr 6, 2013 I believe the lwt dependency is missing (I noticed it using oasis2opam). I have updated the package (see Chris00@64868dd pending merge). OCaml member diml commented Apr 6, 2013 This means that the shared library for lwt.unix stubs (dlllwt-unix_stubs.so) that is loaded by utop does not match the lwt utop is linked with. The most probable reason is that you are running the utop of one the two installation with the shared library for lwt of the other and only one of them is build with libev support. Can you give the output of the following commands: $ which utop $ echo $CAML_LD_LIBRARY_PATH $ cat `opam co
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Utop from Ocaml brew throws error up vote https://github.com/ocaml/opam-repository/issues/584 0 down vote favorite 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 linux debian http://stackoverflow.com/questions/20875352/utop-from-ocaml-brew-throws-error ocaml ldd ocamlfind share|improve this question asked Jan 2 '14 at 2:09 user567879 1,17993671 1 This doesn't answer your question, but I recommend you use opam to install OCaml tools and libraries. –Ashish Agarwal Jan 2 '14 at 12:10 use opam for everything –Jackson Tale Jan 2 '14 at 15:07 But the problem is I couldnt install Opam from source. Its throwing error. SO I switched to Ocamlbrew –user567879 Jan 2 '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 2 '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 3 '14 at 12:49 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote 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
obrowser: Fatal error: cannot load shared library dllunix From: Stéphane Glondu