如何在Windows 8中安装,编译和使用Rebar

Fre*_*Guy 15 windows erlang rebar

这可能吗?

我遇到的关于如何构建和使用Rebar的所有教程都涉及到Unix命令,而且我是一个非常不幸的Windows用户.如果我能帮忙的话,我真的很想避免安装Cygwin.

例如,要构建Rebar,您将获得:

$ git clone git://github.com/rebar/rebar.git
$ cd rebar
$ ./bootstrap
Recompile: src/getopt
...
Recompile: src/rebar_utils
==> rebar (compile)
Congratulations! You now have a self-contained script called "rebar" in
your current working directory. Place this script anywhere in your path
and you can use rebar to build OTP-compliant apps.
Run Code Online (Sandbox Code Playgroud)

什么是windows-cmd等价物?

下面的任何链接或教程提供有关如何在Windows shell中使用钢筋的分步说明将非常感激.

更新:

手动下载并将Rebar解压缩到我的目录后,位于:C:\ erlang\rebar

我转到windows shell并输入:

SET PATH=C:\Program Files\erl5.10.1\bin
Run Code Online (Sandbox Code Playgroud)

这是位于包含erlang.exe的目录内的'bin'文件夹

接下来我输入:

C:\erlang\rebar>bootstrap.bat 
Run Code Online (Sandbox Code Playgroud)

编译了!:)

kjw*_*188 13

bootstrap.batrebar目录中应该有一个脚本.你不需要使用cygwin就可以了,但是你需要安装Erlang并且在路径上.