Closed marryton007 closed 4 years ago
What's the output of cat /etc/passwd
and env
. Does it differ, if you start cygwin from the windows explorer (e.g. C:\OCaml64\Cygwin.bat
).
I'v installed ocaml into D:\programe\ocaml\OCaml64
, run D:\programe\ocaml\OCaml64\Cygwin.bat
output of cat /etc/passwd
$ cat /etc/passwd
cat: /etc/passwd: No such file or directory
output of env
env.log
Do the directories D:\programe\ocaml\OCaml64\home\marryton007
and D:\programe\ocaml\OCaml64\home\marryton007\.opam
exist?
If yes, try to generate the /etc/passwd manually (normally the installer does it):
mkpasswd -p /home -c > /etc/passwd
cat /etc/passwd # check output
Then close the terminal and start a new one. echo $HOME
should now be /home/marryton007
and opam should be initialized.
Otherwise you have to call opam init
with the proper arguments:
opam init default "https://github.com/fdopen/opam-repository-mingw.git#opam2" -c "ocaml-variants.4.08.1c"
I can't find the directory D:\programe\ocaml\OCaml64\home\marryton007
and I checked
the environments of my system. I found the HOME
variable. After delete it and re-run the installer program. It works fine.
I have forgot why and when adding the HOME
environment variable.
My environment: Win10 home edition, x64. I have downloaded the 64bit Graphical Installer from this page. The progress of install is fine, but when I open the Ocaml64 terminal and run
opam install merlin
. I got follow:I try to run
opam init
, but it seems has not install ocaml compiler