Discussions

Ask a Question
Back to All

Installing rebar3 on Windows

Dear community,
I would like to know how to install rebar3 on Windows, using the Powershell (or any other tool). I've read the "Getting started" and the instructions for Windows users, but somehow don't seem to be able to get it running. In the instructions I get stuck at the last two parts:

"make a file using notepad.exe with the contents of the .cmd invoker for escript to run rebar3 (provided in this document below)
open a new command-line and type rebar3"

Is there someone who'd like to help me out?

I'm not really sure what the .cmd invoker for escript does or how it works. I'm also not entirely sure about the last instruction "open a new command-line and type rebar3" in the sense; do I do this using Elixer (iex.bat) or just the regular Powershell path?

I get the following error:

iex(1)> C:\Users\ewoud\bin$ ./rebar3 local install
===> Extracting rebar3 libs to ~/.cache/rebar3/lib...
===> Writing rebar3 run script ~/.cache/rebar3/bin/rebar3...
===> Add to $PATH for use: export PATH=$PATH:~/.cache/rebar3/bin** (SyntaxError) iex:1: keyword argument must be followed by space after: C:

iex(1)> ** (SyntaxError) iex:1: unexpected token: "~" (column 32, code point U+007E)

As well as this one in the regular powershell command line:
./rebar3 : The term './rebar3' is not recognized as the name of a cmdlet, function, script file, or operable program. C
heck the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • ./rebar3 local install
  •   + CategoryInfo          : ObjectNotFound: (./rebar3:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

Any help is appreciated! Thank so much.

Ewoud