tarides / ocaml-platform-installer

The best way for developers to write software in OCaml
ISC License
60 stars 8 forks source link

can't locate `ocaml` binary #153

Closed kaddkaka closed 1 year ago

kaddkaka commented 1 year ago

I tried to follow the installation steps, but after running:

sudo apt install bzip2 make gcc bubblewrap rsync patch curl unzip
bash < <(curl -sL https://github.com/tarides/ocaml-platform-installer/releases/latest/download/installer.sh)
ocaml-platform

This is my attempts at running ocaml and installing it.

$ ocaml
bash: ocaml: command not found
$ opam install ocaml
[NOTE] Package ocaml is already installed (current version is 5.0.0).

What to do?

kaddkaka commented 1 year ago
$ opam list
# Packages matching: installed
# Name                # Installed                    # Synopsis
base-bigarray         base
base-domains          base
base-nnp              base                           Naked pointers prohibited in the OCaml heap
base-threads          base
base-unix             base
dune                  3.6.1-ocaml5.0.0+platform
dune-release          1.6.2+platform
merlin                4.7.1-500-ocaml5.0.0+platform
ocaml                 5.0.0                          The OCaml compiler (virtual package)
ocaml-base-compiler   5.0.0                          Official release 5.0.0
ocaml-config          3                              OCaml Switch Configuration
ocaml-lsp-server      1.15.1-5.0-ocaml5.0.0+platform
ocaml-options-vanilla 1                              Ensure that OCaml is compiled with no special options enabled
ocamlformat           0.24.1+platform
odoc                  2.2.0-ocaml5.0.0+platform
$ opam install ocaml-lsp-platform
[ERROR] No package named ocaml-lsp-platform found.
kaddkaka commented 1 year ago

Oh, seems like I was missing eval $(opam env)!

panglesd commented 1 year ago

Thanks for the report! I opened #154 related to your issue.