[root@c8bd22c58bd3 host]# apt-get install opam Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: opam 0 upgraded, 1 newly installed, 0 removed and 34 not upgraded. [root@c8bd22c58bd3 host]# opam init [WARNING] Running as root is not recommended 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 - patch - 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.
В чём ошибка то ? доставьте нужные зависимости. Они нужны не во всех сценариях работы opam И да, под рутом его точно не стоит запускать.
(Ответ для Anton Farygin на комментарий #1) > В чём ошибка то ? доставьте нужные зависимости. Они нужны не во всех > сценариях работы opam В том, что зависимости не доустанавливаются автоматически. Написано же, что для инициализации не хватает обязательных зависимостей. Без неё почти никакие команды не работают. > И да, под рутом его точно не стоит запускать. В изолированном окружении можно.