Mix (elixir) no such file or directory

I am trying to install an elixir in Ubuntu ... I followed this instruction .

Everything is fine, but when I try to execute the mix command, the system answered me like this:

bash: /usr/bin/mix: No such file or directory

Thank you.

+5
source share
4 answers

Just ran into the same problem. The manual you linked sets the mix to / usr / local / bin / mix instead of / usr / local / mix. I created symlink / usr / bin / mix, but the $ PATH extension is probably the best way to fix this.

~$ mix
-bash: /usr/bin/mix: No such file or directory
~$ which mix
/usr/local/bin/mix
~$ sudo ln -s /usr/local/bin/mix /usr/bin/mix
~$ mix
** (Mix) Could not find a Mix.Project, please ensure a mix.exs file is available
+3
source

in my case, I installed the elixir using sudo, so when you try to call it without sudo you get this error.

+1
source

. CDPATH.

unset CDPATH .

0

In my case, I reinstalled Erlang through sudo apt-get install erlang-base, and during the installation, Elixir was completely uninstalled.

Fixed by running sudo apt-get install elixir.

All repositories have already been preinstalled for me.

0
source

Source: https://habr.com/ru/post/1656114/


All Articles