hannesm / jackline

minimalistic secure XMPP client in OCaml
BSD 2-Clause "Simplified" License
250 stars 20 forks source link

Build fails on MacOS Mojave #210

Closed claucece closed 4 years ago

claucece commented 4 years ago

I tried installing jackline on macOS (Mojave, 10.14.6) by installing OCaml and following the repo instructions. This happens:

#=== ERROR while compiling jackline.0.1.0 =====================================#
# context     2.0.6 | macos/x86_64 | ocaml-base-compiler.4.07.1 | git+https://github.com/hannesm/xmpp-opam.git
# path        ~/.opam/4.07.1/.opam-switch/build/jackline.0.1.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml build --pinned true
# exit-code   1
# env-file    ~/.opam/log/jackline-56063-865888.env
# output-file ~/.opam/log/jackline-56063-865888.out
### output ###
# [...]
# pkg.ml: [WARNING] file opam: opam field "license" undefined or unsupported
# pkg.ml: [WARNING] file opam: opam field "dev-repo" undefined or unsupported
# ocamlfind ocamldep -package 'lwt.unix notty notty.lwt sexplib ptime.clock.os dns-client.lwt mtime.clock.os' -package 'sexplib astring uchar ptime erm_xmpp lwt tls tls.lwt hex otr x509 mirage-crypto mirage-crypto-pk base64' -modules bin/jackline.ml > bin/jackline.ml.depends
# ocamlfind ocamldep -package 'lwt.unix ptime.clock.os' -package 'notty lwt' -package 'sexplib astring uchar ptime erm_xmpp lwt tls tls.lwt hex otr x509 mirage-crypto mirage-crypto-pk base64' -modules cli/cli_client.ml > cli/cli_client.ml.depends
# ocamlfind ocamldep -package 'notty lwt' -package 'sexplib astring uchar ptime erm_xmpp lwt tls tls.lwt hex otr x509 mirage-crypto mirage-crypto-pk base64' -modules cli/cli_colour.ml > cli/cli_colour.ml.depends
# ocamlfind ocamldep -package 'ppx_sexp_conv ptime.clock.os' -package 'sexplib astring uchar ptime erm_xmpp lwt tls tls.lwt hex otr x509 mirage-crypto mirage-crypto-pk base64' -modules src/user.mli > src/user.mli.depends
# + ocamlfind ocamldep -package 'ppx_sexp_conv ptime.clock.os' -package 'sexplib astring uchar ptime erm_xmpp lwt tls tls.lwt hex otr x509 mirage-crypto mirage-crypto-pk base64' -modules src/user.mli > src/user.mli.depends
# ocamlfind: Package `ppx_deriving' not found - required by `ppx_sexp_conv'
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
#      '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
#      'README.md' 'bin/jackline.native']: exited with 10

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
┌─ The following actions failed
│ λ build jackline 0.1.0

Any ideas?

hannesm commented 4 years ago

Thanks for your report. I added the missing dependency, could you run an opam update && opam install jackline on your computer, this should result in a successful compilation. Please comment here if it works for you or not. Thanks, and sorry for the inconvenience.

claucece commented 4 years ago

Working perfectly now! Thanks!