eliom icon indicating copy to clipboard operation
eliom copied to clipboard

Can't install on Ocaml 4.04+flambda

Open bluddy opened this issue 8 years ago • 5 comments

It appears that package constraints don't allow installing eliom on 4.04+flambda.

From OPAM:

~ ❯❯❯ opam install eliom The following dependencies couldn't be met:

  • eliom -> camlp4 <= 4.02+6
  • eliom -> js_of_ocaml < 2.0
  • eliom -> ocsigenserver >= 2.8 -> ocamlnet >= 4.0.2 Your request can't be satisfied:
  • camlp4<=4.02+6 is not available because your system doesn't comply with !preinstalled & ocaml-version >= "4.02" & ocaml-version < "4.03".
  • js_of_ocaml<2.0 is not available because your system doesn't comply with ocaml-version <= "4.01.0".
  • ocamlnet>=4.0.2 is not available because your system doesn't comply with ocaml-version >= "4.00.0" & compiler != "4.04.0+flambda".

bluddy avatar Jan 23 '17 02:01 bluddy

The problem comes from Ocamlnet. We can only possibly use Ocamlnet 4.1.2, and that one is explicitly incompatible with Ocaml 4.04+flambda. The easiest solution would be to stick to the non-flambda compiler, for now.

vasilisp avatar Jan 23 '17 10:01 vasilisp

Is Ocamlnet your network infrastructure? Given how antiquated it is, wouldn't it be a good idea to move to a new library?

bluddy avatar Jan 23 '17 15:01 bluddy

It is not really our network infrastructure. We only use peripheral parts of it, e.g., the PCRE bindings and the URL manipulation module.

Indeed, we are in the process of getting rid of it and using more modern libraries as appropriate (re, uri, etc.).

vasilisp avatar Jan 23 '17 15:01 vasilisp

Is Ocamlnet your network infrastructure? Given how antiquated it is, wouldn't it be a good idea to move to a new library?

Sure. We'll clap our hands and it'll be done just by magic. :)

More seriously, switching off ocamlnet is a difficult change, as @vasilisp said. If you want to help, I'm sure @vasilisp will be happy to give you concrete tasks when it gets to a reviewable state.

Drup avatar Jan 23 '17 15:01 Drup

@Drup I didn't mean to be dismissive of how much effort it is to change a codebase. Just noting that ocamlnet is not a good target to rely on in this day and age, and it's unlikely to ever get better.

In any case, I'm just at the point that I'm getting my feet wet with Eliom, though I'm enjoying it so far.

bluddy avatar Jan 23 '17 16:01 bluddy