revery icon indicating copy to clipboard operation
revery copied to clipboard

esy install failing on Windows.

Open differentprogramming opened this issue 4 years ago • 3 comments

  • Operating System: Windows 10 Pro
  • Revery Version: Trying to install
  • OCaml version: trying to install I do have visual studio 2017 installed

After various false starts I got as far as typing "esy install" in an admin prompt in the revery cloned directory and it got as far as:

.... fetching [email protected]: internal error, uncaught exception: Unix.Unix_error(Unix.EACCES, "rename", "C:\local\revery\_esy\default\tmp\esy-ce1b63") Raised at file "esy-lib/RunAsync.re", line 13, characters 2-51 Re-raised at file "esy-lib/RunAsync.re", line 13, characters 2-51 Re-raised at file "src/core/lwt.ml", line 2999, characters 20-29 Called from file "src/unix/lwt_main.ml", line 26, characters 8-18 Called from file "esy-lib/Cli.re", line 264, characters 9-28 Called from file "cmdliner_term.ml", line 25, characters 19-24 Called from file "cmdliner.ml", line 25, characters 27-34 Called from file "cmdliner.ml", line 116, characters 32-39

Before that I installed npm found that "npm install -g windows-build-tools" failed when my antivirus reports "PowerShell tried to load a malicious resource detected as Heur.BZC.ZFV.Boxter.6008.E5DBFDF9 and was blocked. Your device is safe." - and changing its settings won't stop it from blocking.

But then I noticed that you had a an alternative way to install.

"choco install visualstudio2017buildtools visualstudio2017-workload-vctools -y"

I tried that and it installed visualstudio2017buildtools but balked at visualstudio2017-workload-vctools. So I tried again from an admin prompt but it claimed that visualstudio2017-workload-vctools was already installed. So I tried "choco upgrade -y visualstudio2017-workload-vctools --force" then I went back to the normal prompt and tried. "esy install" That failed with something I don't see in the scrollback about tar not being able to create a symlink. So I tried it again in the admin prompt and here I am at .... fetching [email protected]: internal error, uncaught exception: Unix.Unix_error(Unix.EACCES, "rename", "C:\local\revery\_esy\default\tmp\esy-c99678") Raised at file "esy-lib/RunAsync.re", line 13, characters 2-51 Re-raised at file "esy-lib/RunAsync.re", line 13, characters 2-51 Re-raised at file "src/core/lwt.ml", line 2999, characters 20-29 Called from file "src/unix/lwt_main.ml", line 26, characters 8-18 Called from file "esy-lib/Cli.re", line 264, characters 9-28 Called from file "cmdliner_term.ml", line 25, characters 19-24 Called from file "cmdliner.ml", line 25, characters 27-34 Called from file "cmdliner.ml", line 116, characters 32-39

differentprogramming avatar Jan 28 '21 10:01 differentprogramming

I tried installing an older version of reperf, same error I tried leaving reperf out of the install - same error on the NEXT include I tried uninsalling esy and installing it again - same error I tried turning off the virus scanner so that I could use "npm install -g windows-build-tools"

  • once again I got the same error.

differentprogramming avatar Jan 28 '21 12:01 differentprogramming

Mine also failed to install on Windows 10, I was able to install the windows-build-tools

OS: Windows 10 Terminal : Git Bash

info install 0.6.8 (using package.json)
.... fetching @opam/ocaml-lsp-server@github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#5df0ce2      4 [main] gettext (12792) C:\Program Files\git\usr\bin\gettext.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180340408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
      3 [main] envsubst (9352) C:\Program Files\git\usr\bin\envsubst.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180340408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
      3 [main] envsubst (11540) C:\Program Files\git\usr\bin\envsubst.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180340408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
.... fetching @opam/tyxml@opam:4.4.0      3 [main] gettext (18524) C:\Program Files\git\usr\bin\gettext.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180340408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
      2 [main] envsubst (13720) C:\Program Files\git\usr\bin\envsubst.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180340408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
      3 [main] envsubst (3708) C:\Program Files\git\usr\bin\envsubst.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180340408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
.... fetching @opam/stdio@opam:v0.14.0      2 [main] gettext (18376) C:\Program Files\git\usr\bin\gettext.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180340408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
      4 [main] envsubst (2892) C:\Program Files\git\usr\bin\envsubst.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180340408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
      2 [main] envsubst (21860) C:\Program Files\git\usr\bin\envsubst.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180340408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
esy: internal error, uncaught exception:
     Unix.Unix_error(Unix.EACCES, "rename", "C:\\Aivan\\PE\\revery\\_esy\\default\\tmp\\esy-8514a0")
     Raised at file "esy-lib/RunAsync.re", line 13, characters 2-51
     Re-raised at file "esy-lib/RunAsync.re", line 13, characters 2-51
     Re-raised at file "src/core/lwt.ml", line 2999, characters 20-29
     Called from file "src/unix/lwt_main.ml", line 26, characters 8-18
     Called from file "esy-lib/Cli.re", line 264, characters 9-28
     Called from file "cmdliner_term.ml", line 25, characters 19-24
     Called from file "cmdliner.ml", line 25, characters 27-34
     Called from file "cmdliner.ml", line 116, characters 32-39
.... fetching @opam/uucp@opam:13.0.0

geocine avatar Mar 09 '21 10:03 geocine

I've ran into this error before; I removed the _esy (in the project) and .esy (in your home folder) directories and it worked after that. Also make sure you're running esy as admin; for some reason it never fully finishes for normal users.

water-sucks avatar Mar 14 '21 23:03 water-sucks