fxfactorial / podge

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

Install error on 4.06.1 #7

Open retnuh opened 6 years ago

retnuh commented 6 years ago

Hi there I'm new to OCaml and was following along with https://ocaml.org/learn/tutorials/get_up_and_running.html

But when I try to install podge I get this:

#=== ERROR while installing podge.0.8.0 =======================================#
# opam-version 1.2.2
# os           darwin
# command      ocaml setup.ml -build
# path         /Users/retnuh/.opam/4.06.1/build/podge.0.8.0
# compiler     4.06.1
# exit-code    1
# env-file     /Users/retnuh/.opam/4.06.1/build/podge.0.8.0/podge-78455-097da2.env
# stdout-file  /Users/retnuh/.opam/4.06.1/build/podge.0.8.0/podge-78455-097da2.out
# stderr-file  /Users/retnuh/.opam/4.06.1/build/podge.0.8.0/podge-78455-097da2.err
### stdout ###
# [...]
# File "lib/podge.ml", line 446, characters 9-13:
# Warning 6: label n was omitted in the application of this function.
# File "lib/podge.ml", line 453, characters 19-23:
# Warning 6: label n was omitted in the application of this function.
# File "lib/podge.ml", line 454, characters 24-28:
# Warning 6: label n was omitted in the application of this function.
# File "lib/podge.ml", line 534, characters 25-31:
# Error: This expression has type string but an expression was expected of type
#          bytes
# Command exited with code 2.
### stderr ###
# E: Failure("Command ''/Users/retnuh/.opam/4.06.1/bin/ocamlbuild' lib/podge.cma lib/podge.cmxa lib/podge.a lib/podge.cmxs -use-ocamlfind -tag debug' terminated with error code 10")

I'm guessing https://github.com/fxfactorial/podge/pull/6 may help but not familiar enough with the ecosystem to try that out.

fxfactorial commented 6 years ago

Basically it means that the new compiler wants you to explicitly do the conversion of string to bytes and vice versa