Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esy install failing on Windows. #1048

Open
differentprogramming opened this issue Jan 28, 2021 · 3 comments
Open

esy install failing on Windows. #1048

differentprogramming opened this issue Jan 28, 2021 · 3 comments

Comments

@differentprogramming
Copy link

  • 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 reperf@1.5.0esy: 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 reperf@1.5.0esy: 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
Copy link
Author

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.

@geocine
Copy link

geocine commented Mar 9, 2021

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

@water-sucks
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants