ocsigen / ocsigenserver

Web server in OCaml.
http://ocsigen.org/ocsigenserver/
Other
100 stars 32 forks source link

Opam fails to install ocsigenserver #156

Closed abhi18av closed 5 years ago

abhi18av commented 6 years ago

Hi ocsigen team,

I was trying to install eliom on my machine, however at the very last step I face this error

root@pup:~/projects/let-ocaml/_scratch# opam install eliom
[WARNING] Running as root is not recommended
The following actions will be performed:
  ∗ install ocsigenserver 2.9   [required by eliom]
  ∗ install eliom         6.3.0
===== ∗ 2 =====
Do you want to continue? [Y/n] y

<><> Gathering sources <><><><><><><><><><><><><><><><><><><><><><><>[eliom.6.3.0] found in cache
[ocsigenserver.2.9] found in cache

<><> Processing actions ><><><><><><><><><><><><><><><><><><><><><><>[ERROR] The compilation of ocsigenserver failed at "/usr/bin/make".

#=== ERROR while compiling ocsigenserver.2.9 =======================## context     2.0.0 | linux/x86_64 | ocaml-base-compiler.4.07.1 | https://opam.ocaml.org#c5f67cf4
# path        ~/.opam/default/.opam-switch/build/ocsigenserver.2.9
# command     /usr/bin/make
# exit-code   2
# env-file    ~/.opam/log/ocsigenserver-8832-ad8886.env
# output-file ~/.opam/log/ocsigenserver-8832-ad8886.out
### output ###
# [...]
# File "_none_", line 1:
# Error: Files ../baselib/baselib.cma(Ocsigen_commandline)
#        and ../baselib/parsecommandline.cma(Ocsigen_getcommandline)
#        make inconsistent assumptions over interface Ocsigen_getcommandline
# Makefile:55: recipe for target 'ocsigenserver' failed
# make[2]: *** [ocsigenserver] Error 2
# make[2]: Leaving directory '/root/.opam/default/.opam-switch/build/ocsigenserver.2.9/src/server'
# Makefile:4: recipe for target 'all' failed
# make[1]: *** [all] Error 2
# make[1]: Leaving directory '/root/.opam/default/.opam-switch/build/ocsigenserver.2.9/src'
# Makefile:8: recipe for target 'all' failed
# make: *** [all] Error 2

<><> Error report ><><><><><><><><><><><><><><><><><><><><><><><><><>┌─ The following actions failed
│ λ build ocsigenserver 2.9
└─
╶─ No changes have been performed
root@pup:~/projects/let-ocaml/_scratch#

As you can see, all other dependencies are met perfectly but still opam fails to build the server. Could you please help me out a bit ?

abhi18av commented 6 years ago

This seems related https://github.com/ocsigen/ocsigenserver/issues/150

abhi18av commented 6 years ago

And the solution regarding pin solved my problem as a hack from this thread https://github.com/ocsigen/ocsigenserver/pull/152

vouillon commented 5 years ago

We have made a new release, so that should be fixed now.

abhi18av commented 5 years ago

Perfect 👍