ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.25k stars 362 forks source link

opam init on android #5771

Open Kingsley-Eghianruwa opened 11 months ago

Kingsley-Eghianruwa commented 11 months ago

good day. please when i run opam init i get the following error ``` No configuration file found, using built-in defaults. Checking for available remotes: rsync and local, git.

Fatal error: Undefined boolean filter value: !(os = "openbsd" | os = "freebsd") ```. i manually created the ~/.opam/config file but could not install packages due to a switch error and i could not create a new switch

please how do i resolve this.

i am trying to instal ocaml on an android tablet(8.0) via termux

# opam config report
# opam-version         2.1.5
# self-upgrade         no
# system               arch=unknown os=unknown os-distribution=unknown os-version=unknown
[ERROR] Opam has not been initialised, please run `opam init'
# read-state           OpamStd.OpamSys.Exit(50)
rjbou commented 10 months ago

Unfortunately, there is no way for the moment to give a good hint to bypass that issue. We'll be able to get back with a code fix that permit to set the os variable when it is undefined. If you have an OCaml compiler, can you share the value of Sys.os_type on android?

On the manually created ~/.opam/config file, can you share it? Maybe we can help with some internal changes to unblock you.