Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing dependency? #7

Open
progman1 opened this issue Aug 7, 2019 · 3 comments
Open

missing dependency? #7

progman1 opened this issue Aug 7, 2019 · 3 comments

Comments

@progman1
Copy link

progman1 commented Aug 7, 2019

hi
just taking for a spin to see if I can take the pain out of refactoring
some legacy perl scripting.

opam install of shcaml succeeded (installs 4.08.1) but (since you dep on ocamlfind)
#require "shcaml";;
fails with missing lwt.unix
installed lwt then undefined global 'Mutex' (presumably a module part of some other s/w)

@tov tov assigned tov and unassigned tov Aug 10, 2019
@tov
Copy link
Owner

tov commented Aug 10, 2019

Thanks for this report as well!

This looks like a tougher one, especially because I don’t know OCaml tooling these days.

@Armael, are you still on as maintainer, and are you able to look into this?

@Armael
Copy link
Collaborator

Armael commented Aug 10, 2019

Yeah I'll look into this one.

@Armael
Copy link
Collaborator

Armael commented Aug 10, 2019

Ok, there are two distinct issues there:

  • shcaml is supposed to work even if lwt is not installed. This is not the case currently as you found out, because I messed up the META file. I'm not sure how to fix it exactly at the moment; until then, a workaround is to install lwt.
  • the undefined global Mutex error. This one is actually not caused by shcaml itself. See here and here. Basically, you need to do #thread;; in the toplevel before calling #require "shcaml";;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants