Problems with setting up Phoenix (hex package)

Hi everybody, this may seem super basic and it probably is - I’m trying to set up the Phoenix Framework, I have Erlang and Elixir installed on my computer. Now I should get the Hex package and on http://www.phoenixframework.org/docs/installation it says to type in the command “$ mix local.hex”, however I’m getting back a syntaxerror for the dollar sign in Elixir:
“** (SyntaxError) iex:1: unexpected token: “$” (column 1, codepoint U+0024)”

What’s the matter with that, can anybody help me out? Thanks.

1 Like

Try typing just mix local.hex.
$ indicates terminal prompt, I guess.

1 Like

Ah! There are two (understandable) mistakes happening here:

  1. The $ is not something to type in, but is there to indicate that you should type the command after it in a command-line shell. It’s mostly there to indicate that you need a normal terminal prompt, without root access.
  2. You should not enter this command inside of IEx, but outside of it.
1 Like

Thx for your reply,

I’ve done that. But then I get back “** (CompileError) iex:1: undefined function mix/1”.
It has to be something simple, yet I don’t know what it is.

1 Like

Yeah, so as @Qqwy wrote above, try doing that outside of elixir shell. You can quit iex by pressing ctrl+c twice.

1 Like

You’re correct on both accounts. I’ll try it out in the command shell.

2 Likes

I’m pretty sure you’re using Windows :wink:
Try to type this command without any mistakes, any backspaces etc. I see it’s very common bug in IEx in Windows.

2 Likes

OK, so far it’s working now, thanks all for your inputs.

1 Like