I am trying to install elixir in ubuntu... I had followed this instructions.
Everthing seems fine, but when I try to execute the mix comand, system asnwered me this:
bash: /usr/bin/mix: No such file or directory
Thanks you.
I am trying to install elixir in ubuntu... I had followed this instructions.
Everthing seems fine, but when I try to execute the mix comand, system asnwered me this:
bash: /usr/bin/mix: No such file or directory
Thanks you.
Just ran into the same problem. The guide you linked installs mix to /usr/local/bin/mix instead of /usr/local/mix. I created a symlink /usr/bin/mix but expanding $PATH is probably a better 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
in my case i have installed elixir using sudo so when you try to call it without sudo you'll get this error.
Also ran into this. In my case it stemmed from having CDPATH
set.
Unsetting it for the session with unset CDPATH
and retrying did the trick.
In my case I reinstalled Erlang via sudo apt-get install erlang-base
and during installation, Elixir got removed altogether.
Fixed that by running sudo apt-get install elixir
.
All repositories were preset for me already.