Comments (8)
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 usemark_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 usemark_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.
2.4.5 from opam.
from ezjsonm.
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.
I successfully pinned lwt to 2.5.0, can't get ezjsonm to install on top of that via opam
from ezjsonm.
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.
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.
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.
This was fixed in 14ff73f
from ezjsonm.
Related Issues (15)
- Add unit tests HOT 1
- Ezjsonm doesn't allow encoding non arrays/objects? HOT 6
- Missing online documentation. HOT 5
- Retrieving optional fields HOT 3
- Fix compilation on trunk HOT 1
- Jsoo + Ezjsonm: "Too much recursion" in Firefox console when reading/writing Json-list HOT 2
- update sexplib upper bound on opam-repository HOT 2
- Ezjsonm doesn't satisfy sexplib interface
- Assertion failure when parsing a number HOT 1
- Ezjsonm.t is overly restrictive and not compliant with the spec HOT 5
- Stack-overflow in json_of_src when built with JSOO (with potential fix) HOT 2
- Design of accessors functions
- Encoding of non-UTF-8 `String _ values, fail earlier?
- Make a new opam release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ezjsonm.