Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot install OCaml on windows: permission error

Tags:

ocaml

opam

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?

like image 434
Vanessa Avatar asked May 26 '26 02:05

Vanessa


1 Answers

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.

like image 97
LanceH Avatar answered Jun 01 '26 16:06

LanceH