Quantcast
Channel: Active questions tagged ocaml - Stack Overflow
Viewing all articles
Browse latest Browse all 527

Why does 'opam init' fail claiming 'Missing dependencies' even though they are on the system path?

$
0
0

I'd like to install OCaml on my platform.

I followed the official OCaml install instructions detailed here: https://ocaml.org/docs/installing-ocaml, running:

bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)"opam init -y

but the latter command failed with the message:

No configuration file found, using built-in defaults.Checking for available remotes: none.  - you won't be able to use rsync and local repositories unless you install the rsync command on your system.  - you won't be able to use git repositories unless you install the git command on your system.  - you won't be able to use mercurial repositories unless you install the hg command on your system.  - you won't be able to use darcs repositories unless you install the darcs command on your system.[WARNING] Recommended dependencies -- most packages rely on these:  - make  - cc[ERROR] Missing dependencies -- the following commands are required for opam to operate:  - curl or wget: A download tool is required, check env variables OPAMCURL or OPAMFETCH  - diff  - patch  - tar  - unzip  - getconf  - bwrap: Sandboxing tool bwrap was not found. You should install 'bubblewrap'. See https://opam.ocaml.org/doc/FAQ.html#Why-does-opam-require-bwrap.

All of the above tools exist on my platform, e.g. 'which bwrap' or 'command -v bwrap' return '/usr/bin/bwrap'.I have tried restarting my platform.Is there another way to bypass this issue with another install method? if not, what could be the culprit here, and how can I fix it?


Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>