mongo icon indicating copy to clipboard operation
mongo copied to clipboard

opam: camlp4 dependency

Open vogler opened this issue 7 years ago • 4 comments

Currently installation fails for OCaml versions >= 4.02.0 with lwt installed, since camlp4 is no longer distributed with the compiler.

❯ opam install mongo
The following actions will be performed:
  ∗  install mongo 0.67.2

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫
[mongo] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫
[ERROR] The compilation of mongo failed at "ocaml setup.ml -configure --enable-lwt --prefix
        /Users/voglerr/.opam/4.04.1".
Processing  1/1: [mongo: ocamlfind remove]
#=== ERROR while installing mongo.0.67.2 ======================================#
# opam-version 1.2.2
# os           darwin
# command      ocaml setup.ml -configure --enable-lwt --prefix /Users/voglerr/.opam/4.04.1
# path         /Users/voglerr/.opam/4.04.1/build/mongo.0.67.2
# compiler     4.04.1
# exit-code    1
# env-file     /Users/voglerr/.opam/4.04.1/build/mongo.0.67.2/mongo-69339-1872ec.env
# stdout-file  /Users/voglerr/.opam/4.04.1/build/mongo.0.67.2/mongo-69339-1872ec.out
# stderr-file  /Users/voglerr/.opam/4.04.1/build/mongo.0.67.2/mongo-69339-1872ec.err
### stderr ###
# [...]
# File "setup.ml", line 5810, characters 31-50:
# Warning 3: deprecated: String.uncapitalize
# Use String.uncapitalize_ascii instead.
# File "setup.ml", line 5811, characters 31-48:
# Warning 3: deprecated: String.capitalize
# Use String.capitalize_ascii instead.
# ocamlfind: Package `lwt.syntax' not found
# W: Field 'pkg_lwt_syntax' is not set: Command ''/Users/voglerr/.opam/4.04.1/bin/ocamlfind' query -format %d lwt.syntax > '/var/folders/0j/1lq15k654zg7cf1rh9_gqty80000gn/T/oasis-478abe.txt'' terminated with error code 2
# E: Cannot find findlib package lwt.syntax
# E: Failure("1 configuration error")

After opam install camlp4 it succeeds.

vogler avatar May 08 '17 13:05 vogler

I also got this error,how can I solve it?

tsh-box avatar Dec 25 '17 07:12 tsh-box

After opam install camlp4 it succeeds.

vogler avatar Dec 25 '17 10:12 vogler

Thanks you,

tsh-box avatar Dec 26 '17 00:12 tsh-box

Sorry for the delay, I have more time now and will go over all the issues this weekend. Let me know if there anything missing as well.

msimon avatar Jan 18 '18 18:01 msimon