我遇到的关于如何构建和使用Rebar的所有教程都涉及Unix命令,而我是最不幸的Windows用户。如果我可以帮忙,我真的很想避免安装Cygwin。
例如,建造钢筋你:
$ 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.
什么是Windows-CMD相同呢?
下面的任何链接或教程,以提供如何在windows shell中使用螺纹钢的分步说明将不胜感激。
UPDATE:
后手动下载并提取螺纹钢我位于目录: C:\二郎\螺纹钢
我去到Windows shell并输入:
SET PATH=C:\Program Files\erl5.10.1\bin
这是位于保存erlang.exe的目录内的'bin'文件夹
Next我输入:
C:\erlang\rebar>bootstrap.bat
编译! :)
bootstrap.bat - 谁知道? :) 感谢您指出了这一点! – FredTheWebGuy 2013-04-04 22:07:47
但是,您确实需要编译螺纹钢依赖关系。 Bootstrap只会给你钢筋脚本 - 然后它将获取并尝试编译(通常是linux)依赖项。这是我卡住的地方。 *叹息* – drozzy 2016-02-10 23:07:00