fxfactorial / podge

:moneybag: A Hodgepodge of functions for living in the OCaml ecosystem
http://hyegar.com
62 stars 6 forks source link

fails while installing #2

Closed threepointone closed 8 years ago

threepointone commented 8 years ago

I tried installing this iwth opam install podge, and it failed :| here's a part of the error I got -

...snip...
  installed cohttp.0.9.6
∗  installed oasis.0.4.5
∗  installed lambda-term.1.9
[ERROR] The compilation of podge failed at "ocaml setup.ml -build".
∗  installed utop.1.18.2

#=== ERROR while installing podge.0.5 =========================================#
# opam-version 1.2.2
# os           darwin
# command      ocaml setup.ml -build
# path         /Users/sunilpai/.opam/system/build/podge.0.5
# compiler     system (4.02.3)
# exit-code    1
# env-file     /Users/sunilpai/.opam/system/build/podge.0.5/podge-48344-d1a635.env
# stdout-file  /Users/sunilpai/.opam/system/build/podge.0.5/podge-48344-d1a635.out
# stderr-file  /Users/sunilpai/.opam/system/build/podge.0.5/podge-48344-d1a635.err
### stdout ###
# ocamlfind ocamlopt unix.cmxa -I /usr/local/lib/ocaml/ocamlbuild /usr/local/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /usr/local/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# /Users/sunilpai/.opam/system/bin/ocamlfind ocamldep -package yojson -package unix -package tyxml -package stringext -package re.pcre -package ezxmlm -package cohttp -package ANSITerminal -modules lib/podge.ml > lib/podge.ml.depends
# /Users/sunilpai/.opam/system/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package yojson -package unix -package tyxml -package stringext -package re.pcre -package ezxmlm -package cohttp -package ANSITerminal -I lib -o lib/podge.cmo lib/podge.ml
# + /Users/sunilpai/.opam/system/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package yojson -package unix -package tyxml -package stringext -package re.pcre -package ezxmlm -package cohttp -package ANSITerminal -I lib -o lib/podge.cmo lib/podge.ml
# File "lib/podge.ml", line 298, characters 4-26:
# Error: Unbound value Cohttp.Response.status
# Command exited with code 2.
### stderr ###
# E: Failure("Command ''/usr/local/bin/ocamlbuild' lib/podge.cma lib/podge.cmxa lib/podge.a lib/podge.cmxs -use-ocamlfind -tag debug' terminated with error code 10")

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 
The following actions failed
  ∗  install podge 0.5
The following changes have been performed
  ∗  install   ANSITerminal        0.6.5         
  ∗  install   camlp4              4.02+system   
  ∗  install   cohttp              0.9.6         
  ∗  install   ezxmlm              1.0.1         
  ↘  downgrade lwt                 2.5.1 to 2.4.6
...snip

did I miss a step? cheers

fxfactorial commented 8 years ago

@threepointone Hi, thank you for the bug report. Looks like cohttp changed under me and I didn't notice. I will fix this, much appreciated for report.

@threepointone Actually it looks like you're installing very old version of cohttp, 0.9.6 is a big give away.

do an opam update first, then opam install podge.

threepointone commented 8 years ago

You are right! I upgraded and it installed fine. thanks for the great lib!

( I'm surprised because I only recently installed the toolchain. ¯(ツ)/¯ )

fxfactorial commented 8 years ago

@threepointone you're welcome, be sure to do an opam update, opam upgrade in like 1-2 days. I have an updated version coming out on opam soon: https://github.com/ocaml/opam-repository/pull/6192