Closed tensor-programming closed 7 years ago
Please post the output of
env
cmd /c set
mount
cygcheck -c
at the point before you start the manual installation (opam init ...
).
Edit: I was able to get it to work finally. After a clean install of Cygwin and a walkthrough of the manual install, It worked when I compiled the 64bit Ocaml install from source. When I tried to install the precompiled version, it threw the same errors as mentioned above and when I tried using the graphical install the same thing happened.
You can go ahead and close this issue unless you want to look into the reason why I was unable to use the precompiled versions or the graphical installer.
It's probably because your folder (C:\Projects
) has the "wrong" user rights (cygwin posix emulation doesn't interact very well with native windows access rights).
If you encounter further problems, rename it and create a new folder with the same name (with cmd.exe shell):
set HOME=
C:\cygwin64\bin\bash.exe -l
exit # back to cmd.exe
cd C:\
move "cygwin64\home\YourUsername" Projects
exit
Then start a cygwin shell and try opam init ...
again. If everything works this time, you can move the content of your old folder to the new folder.
No it has nothing to do with user rights on the project folder. I have encountered write protection problems before with this setup for other tools and services on windows and have since changed the access rights on the projects folder so that this will never be a problem again. Since I work with so many different programming languages, (many that do not work well on windows), I try to keep all of my projects in one area and of course, that was one of the first things I had to address.
Edit: I just think its likely that the problem had nothing to do with your actual repo and more to do with an error that I made during the installation. The fact that after a 3rd clean installation things worked properly seems to indicate this. I suspect that I didn't fully clean up the automatic installed Cygwin environment before I had made my first attempt at the manual installation and this caused the problems.
Anyways, thank you for your help.
When trying to install Opam and the Ocaml compiler via the manual, I receive these errors:
These three errors,
base-bigarray
,base-threads
andbase-unix
consistently happen when using both the auto-install method and the manual install method as well as when using the prebuilt Ocaml compiler and the source. I've tried completely purging cygwin etc multiple times and keep encountering this error no matter what I try. Is there something I am just blatantly missing here?Edit: this happens even with the 4.03 version and the older version mentioned in the wiki post. I haven't tried the 32 bit version yet because I don't really think that would make a difference. Also, c:\Projects is my default home (i set it a while ago for emacs). I'm not sure this is the problem either. Capital letters shouldn't cause an issue.