您的位置:首页 > 其它

How to install, compile, and utilize Rebar in Windows

2015-06-05 10:59 585 查看




up
vote6down
votefavorite
3

Is this possible?

All tutorials I've come across on how to build and use Rebar involve Unix commands, and I'm a most unfortunate Windows user. I'd really like to avoid installing Cygwin if I can help it.

For example, to build Rebar you get:
$ 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.


What is the windows-cmd equivalent?

Any links or tutorial below to offer step by step instructions on how to utilize rebar in windows shell would be greatly appreciated.

UPDATE:

After manually downloading and extracting Rebar to my directory located at: C:\erlang\rebar

I go to the windows shell and enter:
SET PATH=C:\Program Files\erl5.10.1\bin


This is the 'bin' folder located inside the directory holding erlang.exe

Next I enter:
C:\erlang\rebar>bootstrap.bat


Compiled! :)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: