Closed BigTimeStats closed 5 years ago
[default] synchronized from https://opam.ocaml.org/1.2.2
Unfortunately your opam version is too old. You should install opam 2 (http://opam.ocaml.org/doc/Install.html). And after that you should install an updated OCaml compiler (e.g.: opam switch create 4.08.0
).
Thanks for taking a look @astrada. I was able to install opam 2:
xxx@instance-1:~$ opam --version
2.0.5
I'm getting errors when running opam switch create 4.08.0
xxx@instance-1:~$ opam switch create 4.08.0
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-base-compiler.4.08.0] downloaded from cache at https://opam.ocaml.org/cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed base-bigarray.base
∗ installed base-threads.base
∗ installed base-unix.base
[ERROR] The compilation of ocaml-base-compiler failed at
"/home/xxx/.opam/opam-init/hooks/sandbox.sh build ./configure
--prefix=/home/xxx/.opam/4.08.0 -C".
#=== ERROR while compiling ocaml-base-compiler.4.08.0 =========================#
# context 2.0.5 | linux/x86_64 | | https://opam.ocaml.org/#dc446ff5
# path ~/.opam/4.08.0/.opam-switch/build/ocaml-base-compiler.4.08.0
# command ~/.opam/opam-init/hooks/sandbox.sh build ./configure --prefix=/home/xxx/.opam/4.08.0 -C
# exit-code 10
# env-file ~/.opam/log/ocaml-base-compiler-13787-a71bb4.env
# output-file ~/.opam/log/ocaml-base-compiler-13787-a71bb4.out
### output ###
# The 'bwrap' command was not found. Install 'bubblewrap' on your system, or
# disable sandboxing in ~/.opam/config at your own risk.
# See https://github.com/projectatomic/bubblewrap for bwrap details.
# For 'bwrap' use in opam, see the FAQ:
# https://opam.ocaml.org/doc/2.0/FAQ.html#Why-does-opam-require-bwrap
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build ocaml-base-compiler 4.08.0
└─
┌─ The following changes have been performed (the rest was aborted)
│ ∗ install base-bigarray base
│ ∗ install base-threads base
│ ∗ install base-unix base
└─
<><> ocaml-base-compiler.4.08.0 troubleshooting <><><><><><><><><><><><><><><><>
=> A failure in the middle of the build may be caused by build parallelism
(enabled by default).
Please file a bug report at https://github.com/ocaml/ocaml/issues
=> You can try installing again including --jobs=1
to force a sequential build instead.
# Run eval $(opam env) to update the current shell environment
Switch initialisation failed: clean up? ('n' will leave the switch partially
installed) [Y/n] Y
I also tried leaving switch partially installed to no avail:
xxx@instance-1:~$ opam switch create 4.08.0
[ERROR] There already is an installed switch named 4.08.0
The 'bwrap' command was not found. Install 'bubblewrap' on your system, or disable sandboxing in ~/.opam/config at your own risk.
You need to install package bubblewrap
.
@astrada Thanks, gave installing bubblewrap
a try and failed... getting configure: error: *** POSIX caps headers not found
. The errors just keep compounding at this point. Is there any reason why sudo add-apt-repository ppa:alessandro-strada/ppa
doesn't work as per the above?
gave installing bubblewrap a try and failed
You should install bubblewrap
with apt
.
why sudo add-apt-repository ppa:alessandro-strada/ppa doesn't work as per the above?
Because the ppa is for Ubuntu distros.
Thanks, going to just re-roll to ubuntu. Any instance/version you recommend on GCP?
I think Ubuntu 18.04 LTS is the safest choice.
Awesome thanks for the help.. install worked on Ubuntu 18.04
Feel free to close
I tried the regular install method and get "no valid OpenPGP data found."
I tried to install via opam and then get error: "-bash: google-drive-ocamlfuse: command not found"
I also tried to install via Debian stretch with no luck via the wiki: https://github.com/astrada/google-drive-ocamlfuse/wiki/Installation "google-drive-ocamlfuse : Depends: libc6 (>= 2.29) but 2.24-11+deb9u4 is to be installed E: Unable to correct problems, you have held broken packages."
Working on GCP:
Thanks for any help