fdopen / opam-repository-mingw

windows package repository for OPAM (mingw and msvc)
https://fdopen.github.io/opam-repository-mingw/
Creative Commons Zero v1.0 Universal
96 stars 34 forks source link

Permission denied #28

Closed mohanr closed 7 years ago

mohanr commented 7 years ago

=-=- Installing compiler 4.02.3+mingw64 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [4.02.3+mingw64: http] [compiler.get] http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.3.tar.xz downloaded [ERROR] Initialisation failed "mv D:\OCaml64\tmp\opam-160-427793\ocaml-4.02.3 D:/OCaml64/home/476458/.opam/4.02.3+mingw64/build/ocaml" exited with code 1 "/usr/bin/mv: cannot move 'D:\OCaml64\tmp\opam-160-427793\ocaml-4.02.3' to 'D:/OCaml64/home/476458/.opam/4.02.3+mingw64/build/ocaml': Permission denied"

I have tried to give more permissions. Is there any way to circumvent this ?

mohanr commented 7 years ago

If I create build/ocaml after it created 4.02.3+mingw64 I see this. Just trying to avoid the permission error.

=-=- Installing compiler 4.02.3+mingw64 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [4.02.3+mingw64: http] [compiler.get] http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.3.tar.xz downloaded [ERROR] Initialisation failed

opam-version 1.3.0~dev (98188f141dbeb429258f2b2c00f6240d0af02b84)

os win32

Extracting the archive will overwrite D:/OCaml64/home/476458/.opam/4.02.3+mingw64/build/ocaml.

opam-version 1.3.0~dev (98188f141dbeb429258f2b2c00f6240d0af02b84)

os win32

Extracting the archive will overwrite D:/OCaml64/home/476458/.opam/4.02.3+mingw64/build/ocaml.

mohanr commented 7 years ago

I tried this in my Windows 8 box and even though the graphical installer didn't install Opam, the manual installation succeeded. So there is a permission issue in my laptop.

Update : This seems to be a common 'mv' issue. I think

=== ERROR while compiling merlin.2.5.2 =======================================

opam-version 1.3.0~dev (98188f141dbeb429258f2b2c00f6240d0af02b84)

os win32

command mv C:\OCaml64\tmp\opam-264-4f1270\merlin-2.5.2 C:/OCaml64/home/spatial/.opam/4.02.3+mingw64c/build/merlin.2.5.2

path C:\OCaml64\home\spatial

exit-code 1

env-file C:/OCaml64/home/spatial/.opam/log\log-264-2913ab.env

stdout-file C:/OCaml64/home/spatial/.opam/log\log-264-2913ab.out

stderr-file C:/OCaml64/home/spatial/.opam/log\log-264-2913ab.err

stderr

/usr/bin/mv: cannot move 'C:\OCaml64\tmp\opam-264-4f1270\merlin-2.5.2' to 'C:/OCaml64/home/spatial/.opam/4.02.3+mingw64c/build/merlin.2.5.2': Permission denied

mohanr commented 7 years ago

I am closing this now as I run into more permission issues. They don't seem to be related to Opam specifically. Moreover I am also looking at a VM.