gpt4 book ai didi

windows - 如何在 Windows 8 中安装、编译和使用 Rebar

转载 作者:可可西里 更新时间:2023-11-01 12:25:31 25 4
gpt4 key购买 nike

这可能吗?

我遇到的所有关于如何构建和使用 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.

windows-cmd 的等价物是什么?

非常感谢以下提供有关如何在 Windows Shell 中使用 rebar 的分步说明的任何链接或教程。

更新:

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

我转到 windows shell 并输入:

SET PATH=C:\Program Files\erl5.10.1\bin

这是位于包含 erlang.exe 的目录中的“bin”文件夹

接下来我输入:

C:\erlang\rebar>bootstrap.bat 

已编译! :)

最佳答案

rebar目录下应该有一个bootstrap.bat脚本。你不需要 cygwin 来工作,但你需要安装 Erlang 并在路径上。

关于windows - 如何在 Windows 8 中安装、编译和使用 Rebar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15796263/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com