andreas / ocaml-graphql-server

GraphQL servers in OCaml
MIT License
624 stars 60 forks source link

simple opam install graphql_parser fails #180

Closed kevinsullivan closed 4 years ago

kevinsullivan commented 4 years ago

With apologies if this is due to newbieness. Happy to close this out if so.

CONTEXT: OSX

ocaml --version The OCaml toplevel, version 4.07.1

menhir --version menhir, version 20171222

PROBLEM

bash-3.2$ opam install graphql_parser
The following actions will be performed:
  βˆ— install graphql_parser 0.13.0

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
[graphql_parser.0.13.0] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
[ERROR] The compilation of graphql_parser failed at
        "/Users/sullivan/.opam/opam-init/hooks/sandbox.sh build dune build -p
        graphql_parser -j 4".

#=== ERROR while compiling graphql_parser.0.13.0 ==============================#
# context     2.0.4 | macos/x86_64 | base-bigarray.base base-threads.base base-unix.base ocaml-system.4.07.1 | https://opam.ocaml.org#eea90994
# path        ~/.opam/system/.opam-switch/build/graphql_parser.0.13.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p graphql_parser -j 4
# exit-code   1
# env-file    ~/.opam/log/graphql_parser-64815-1872ec.env
# output-file ~/.opam/log/graphql_parser-64815-1872ec.out
### output ###
# Usage: /Users/sullivan/.opam/system/bin/menhir <options> <filenames>
# [...]
#   --unused-tokens                  Do not warn about any unused token
#   --update-errors <filename>       Update auto-comments in a .messages file
#   --version                        Show version number and exit
#   -b <basename>                    Synonymous with --base <basename>
#   -lg                              Synonymous with --log-grammar
#   -la                              Synonymous with --log-automaton
#   -lc                              Synonymous with --log-code
#   -t                               Synonymous with --table
#   -v                               Synonymous with --dump --explain
#   -help                            Display this list of options
#   --help                           Display this list of options

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
β”Œβ”€ The following actions failed
β”‚ Ξ» build graphql_parser 0.13.0
└─
╢─ No changes have been performed
kevinsullivan commented 4 years ago

A little more context:

Error: The following libraries are missing in the default context:
- graphql-lwt
Hint: try: opam install graphql-lwt
bash-3.2$ opam install graphql-lwt
The following actions will be performed:
  βˆ— install graphql_parser 0.13.0 [required by graphql]
  βˆ— install graphql        0.13.0 [required by graphql-lwt]
  βˆ— install graphql-lwt    0.13.0
kevinsullivan commented 4 years ago

Probably a version error. Closing. Sorry.