diskuv / dkml-installer-ocaml

The Windows-friendly distribution of OCaml
Apache License 2.0
62 stars 2 forks source link

Windows Installation Failed #17

Closed peter1357908 closed 1 year ago

peter1357908 commented 1 year ago

Hello, I would like to ask about the following installation issue on my Windows 10 machine. Additional info:

  1. I have VS 2019 build tools (16.8.5) as well as Windows 10 SDK installed already
  2. the directory C:\Users\peter\AppData\Local\Temp\PAB6C8~1\ doesn't exist, whether before or after I close the command line window for the script. As a result, there is no vslogs.zip to upload
  3. I do not have quotes in PATH like this issue
Microsoft Visual Studio Build Tools installation failed! Exited with 1.!

FIRST you can retry this script which can resolve intermittent network failures or (rarer) Visual Studio installer bugs.SECOND you can run the following (all on one line) to manually install Visual Studio Build Tools:

        C:\Users\peter\AppData\Local\Temp\PAB6C8~1\0\vsinstall\vs_buildtools.exe --add Microsoft.VisualStudio.Component.Windows10SDK.18362 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.14.26.x86.x64

Make sure the following components are installed:
        a) MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.26)
        b) MSVC v142 - VS 2019 C++ x64/x86 build tools (Latest)
        c) Windows 10 SDK (10.0.18362.0)

THIRD, if everything else failed, you can file a Bug Report at https://github.com/diskuv/dkml-installer-ocaml/issues and attach C:\Users\peter\AppData\Local\Temp\PAB6C8~1\0\vsinstall\vslogs.zip

FATAL [118acf2a]. A transient failure occurred.

Root cause: The conformant command had exit code 1:
                                           C:\Users\peter\AppData\Local\Temp\7z1C08BB64\sg\network-ocamlcompiler\windows_x86_64\setup-machine.bat
                                             -DkmlPath
                                             C:\Users\peter\AppData\Local\Temp\7Z1C08~1\sg\NETWOR~1\WINDOW~1\dkmldir
                                             -TempParentPath
                                             C:\Users\peter\AppData\Local\Temp\PAB6C8~1
                                             -SkipProgress -AllowRunAsAdmin

>>> A transient failure occurred. <<<

dkml-package.bc: [ERROR] FATAL [5f927a8b].
                         A transient failure occurred.

                         Root cause: The command had exit code 20:
                                                                    C:\Users\peter\AppData\Local\Temp\7z1C08BB64\sg\xx-console\windows_x86_64\bin\gsudo.exe
                                                                      --wait --direct
                                                                      C:\Users\peter\AppData\Local\Temp\7z1C08BB64\bin\dkml-install-admin-runner.exe
                                                                      install-adminall
                                                                      --verbosity=info --color=always
                                                                      --prefix
                                                                      C:\Users\peter\AppData\Local\Programs\DiskuvOCaml
                                                                      --staging-files
                                                                      C:\Users\peter\AppData\Local\Temp\7z1C08BB64\sg

                         >>> A transient failure occurred. <<<
jonahbeckford commented 1 year ago

Sorry about that. I just realized myself recently the directory containing vslogs.zip is deleted almost immediately after it is generated. I have a bugfix coming out for that issue (plus a few other bug fixes).

I'll update this ticket when the new release is finished. You will probably have to wait for that.

There is a tiny chance that if you restart your computer, then erase the C:\DiskuvOCaml directory, and then redo the installation ... it might fix the issue

jonahbeckford commented 1 year ago

There is also a new installer at https://github.com/diskuv/dkml-installer-ocaml/releases/tag/v1.1.0_r2 that will capture the vslogs ... and it also marginally improves installing Visual Studio. Is there any chance you could try it out? (Run the uninstaller first, then the installer)

jonahbeckford commented 1 year ago

Re-open if you still have problems! Thanks.

peter1357908 commented 1 year ago

I tried the installer linked above and the installation succeeded; thanks!