本文介绍了如何在Windows上将OCaml与OPam一起安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows上安装Ocaml和OPam?

How can I install OCaml with OPam on windows?

推荐答案

通过遵循以下网站上的教程,我已经能够使用Opam软件包管理器在Windows 10中设置OCaml 4.03.0. http://fdopen.github.io/opam-repository-mingw/"rel =" noreferrer> http://fdopen.github.io/opam-repository-mingw/.这是我执行的详细步骤:

I have been able to setup OCaml 4.03.0 in Windows 10, using the Opam package manager, by following the tutorial from this website: http://fdopen.github.io/opam-repository-mingw/. Here are the detailed steps that I did:

  • 安装OCaml,Opam和Cygwin:

  • Install OCaml, Opam and Cygwin:

  • Download the installation package from this link: http://fdopen.github.io/opam-repository-mingw/installation/.There are both the 32 bit and 64 bit version, but I suggest to install the OCaml 64bit .

在运行图形安装文件时,它将自动为您安装OCaml 4.02.3,Cygwin,Opam.

When running the graphical installation file, it will automatically install OCaml 4.02.3, Cygwin, Opam for you.

安装后,将在Windows桌面上创建OCaml和Cygwin的快捷方式.

After installing, a shortcut for OCaml and Cygwin will be created on your Windows’ desktop.

现在,从Windows桌面的快捷方式中打开Cygwin终端,然后执行以下操作:

Now, open the Cygwin terminal from the shortcut in your Windows’ desktop and do the followings:

  • 为Opam安装一些必需的库:

  • Install some required libraries for Opam:

  • opam install depext
  • opam install depext-cygwinports
  • opam install depext
  • opam install depext-cygwinports

使用Opam将OCaml升级到4.03.0:

Upgrade your OCaml to 4.03.0 by using Opam:

  • opam switch 4.03.0+mingw64
  • eval `opam config env`
  • opam switch 4.03.0+mingw64
  • eval `opam config env`

在Windows上有OCaml 4.03.0!

There you have OCaml 4.03.0 on Windows!

这篇关于如何在Windows上将OCaml与OPam一起安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 09:47
查看更多