OCamlPro / ocaml-top

A simple cross-platform OCaml code editor built for top-level evaluation.
http://typerex.org/ocaml-top.html
GNU General Public License v3.0
64 stars 8 forks source link

build failure on Linux through OPAM #48

Closed sanmai-NL closed 10 years ago

sanmai-NL commented 10 years ago

The problem seems straightforward:

===== ERROR while installing ocaml-top.1.1.2 =====
# opam-version 1.1.1
# os           linux
# command      ocp-build -init -scan
# path         /home/sander/.opam/4.01.0/build/ocaml-top.1.1.2
# compiler     4.01.0
# exit-code    2
# env-file     /home/sander/.opam/4.01.0/build/ocaml-top.1.1.2/ocaml-top-12969-ece7a3.env
# stdout-file  /home/sander/.opam/4.01.0/build/ocaml-top.1.1.2/ocaml-top-12969-ece7a3.out
# stderr-file  /home/sander/.opam/4.01.0/build/ocaml-top.1.1.2/ocaml-top-12969-ece7a3.err
### stderr ###
# ocp-build -init: unknown option `-scan'.
# Command:
#   ocp-build -init [OPTIONS] 
# 
# Set the root of a project.
# 
# Available options in this mode:
#   -help  Display this list of options
#   --help  Display this list of options
sidkshatriya commented 10 years ago

I can confirm that I get the same problem on Linux and on Mac (See #50)

AltGr commented 10 years ago

This happens with ocp-build 1.99.8 (rather than 1.99.6)

sidkshatriya commented 10 years ago

@AltGr

BTW this is the default ocp-build that gets pulled down when doing an opam install ocaml-top .

AltGr commented 10 years ago

Yes, actually I had a PR for that some time ago but it got stalled for some reason; should be OK now if you opam update. Thanks for reporting !

zoggy commented 10 years ago

It does not seem OK for OCaml 4.02, as ocp-build-1.99.6-beta requires ocaml < 4.02. ocaml-top still fails with ocp-build-1.99.8-beta .

zoggy commented 9 years ago

The problem is still there...

sidkshatriya commented 9 years ago

If you pin to an older version of ocp-build (e.g. 1.99.6) using opam pin, you can build this.

zoggy commented 9 years ago

I can't:

# opam install ocp-build.1.99.6-beta
The following dependencies couldn't be met:
  - ocp-build -> typerex
Your request can't be satisfied:
  - typerex is not available because it requires OCaml < 4.02.0.
sidkshatriya commented 9 years ago

I used ocaml 4.01