Giter VIP home page Giter VIP logo

Comments (8)

avsm avatar avsm commented on June 2, 2024

what version of lwt do you have installed? this needs quite a recent one.

On 3 Nov 2015, at 17:03, jchanco [email protected] wrote:

Building with Lwt support fails with "Error: Unbound module Lwt.Infix"
To reproduce:

./configure --enable-lwt
make
Output is:

ocaml setup.ml -build
Finished, 1 target (0 cached) in 00:00:00.
File "_tags", line 28, characters 22-34:
Warning: the tag "pkg_alcotest" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use mark_tag_used in your myocamlbuild.ml to disable this warning.
File "_tags", line 37, characters 23-35:
Warning: the tag "pkg_alcotest" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use mark_tag_used in your myocamlbuild.ml to disable this warning.

  • /Users/juan.chanco/.opam/4.02.3/bin/ocamlfind ocamlc -c -g -annot -bin-annot -I lib -package hex -package jsonm -package lwt -package sexplib -package uutf -I lib -o lib/ezjsonm_lwt.cmo lib/ezjsonm_lwt.ml
    File "lib/ezjsonm_lwt.ml", line 17, characters 5-14:
    Error: Unbound module Lwt.Infix
    Command exited with code 2.
    Compilation unsuccessful after building 12 targets (0 cached) in 00:00:00.
    E: Failure("Command ''/Users/juan.chanco/.opam/4.02.3/bin/ocamlbuild' lib/ezjsonm.cma lib/ezjsonm.cmxa lib/ezjsonm.a lib/ezjsonm.cmxs lib/ezjsonm-lwt.cma lib/ezjsonm-lwt.cmxa lib/ezjsonm-lwt.a lib/ezjsonm-lwt.cmxs -tag debug' terminated with error code 10")
    make: *** [build] Error 1
    Alternately, installing with opam fails similarly:

opam install lwt ezjsonm
https://cloud.githubusercontent.com/assets/14990174/10915006/76b80142-821a-11e5-9f2d-ac521de27562.png

Reply to this email directly or view it on GitHub #18.

from ezjsonm.

jchanco avatar jchanco commented on June 2, 2024

2.4.5 from opam.

from ezjsonm.

jchanco avatar jchanco commented on June 2, 2024

It seems the Lwt.Infix module doesn't exist yet in that version. Unfortunately, I was unsuccessful pining Lwt in opam (opam pin add lwt --dev-repo)

from ezjsonm.

jchanco avatar jchanco commented on June 2, 2024

I successfully pinned lwt to 2.5.0, can't get ezjsonm to install on top of that via opam

from ezjsonm.

jchanco avatar jchanco commented on June 2, 2024

Ok, sorry, one last thing. This is on OSX (10.9.5), where the default version of lwt in opam seems to be 2.4.5, Ezjsonm installs just fine with lwt on linux (debian-jessie) where lwt seems to default to 2.5.0

from ezjsonm.

jchanco avatar jchanco commented on June 2, 2024

OK, sorry. Pilot error. After re-initing opam, the default version of lwt is 2.5.0 and ezjsonm installs with no problems.

from ezjsonm.

samoht avatar samoht commented on June 2, 2024

Seems that there is a missing constraint in https://github.com/ocaml/opam-repository/blob/master/packages/ezjsonm/ezjsonm.0.4.2/opam#L26

from ezjsonm.

djs55 avatar djs55 commented on June 2, 2024

This was fixed in 14ff73f

from ezjsonm.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.