I am trying to follow this guide to install OCaml on windows. All I've done is download the latest installer from here, but when I try to run it I get:
FATAL [ebe9e0f2]. rename C:\Users\<myusername>\AppData\Local\Programs\DiskuvOCaml\bin\bos-08440b.tmp to C:\Users\<myusername>\AppData\Local\Programs\DiskuvOCaml\bin\opam-real.exe: Permission denied
I tried running it as administrator but I get the same error. I can't find information on that error code anywhere, even in the troubleshooting guide.. any ideas?
This happens when restarting the setup after a reboot. I've deleted the whole diskuv directory and restarted.
If you check the directory, the target already exists, so the rename fails -- the script should check for existence or for the file move.
I say delete the whole directory, because if you just delete this one target, it will just move on to the other executables that will have the same error.
This is as of March, 2023 on Windows 10.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With