Failed to install kernel and utop for OCaml on Ubuntu 14.04 with OPAM

I am trying to configure OCaml, OPAM, related libraries and UTOP on Ubuntu 14.04 based on instructions from Real World OCaml. Currently, I have managed to install the OCaml and OPAM compilers. However, when I try to install the kernel and UTOP, I get the following errors:

Core

[ERROR] is not a valid version package name

'opam install core utop' failed.

and

[ERROR] utop is not a valid version package name

'opam install utop' failed.

I would really appreciate if anyone could give suggestions as to what the problem is and how to solve it.

Thank!

EDIT: Based on reviews, I have included more detailed installation information. I installed OPAM 1.1.1. The last commands executed during installation were

opam 4.03.0

,

eval 'opam config env'

, core utop, , -, .

+4
3

opam init / opam update. . "" .

+1

Opam (1.1.1) . Ubuntu 14.04?

Opam 1.2.2 ( 2016 ), . :

+1

I think there is no need to install OCaml and Opam separately. when you install Opam, OCaml also comes with it. Then you need to install utop using opam. Therefore, my advice is to remove all packages associated with oamam and opam, and then reinstall opam, check if ocaml is installed, and finally install utop.

look at post for more info

0
source

Source: https://habr.com/ru/post/1649685/


All Articles