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.
© 2022 - 2024 — McMap. All rights reserved.
/user
or/usr
?/usr
would be the standard place for it to be--/user
would not be. What happens if you type/usr/bin/mix
? – Longueurcd
into directory wheremix.exs
file is available (mix
isn't a global command that works everywhere) – Charentemaritimemix.exs
can cause "/usr/bin/mix: No such file or directory". You can runmix
from any directory after installing Elixir. If you run it from a directory withoutmix.exs
, you'll just get an error like "** (Mix) Could not find a Mix.Project, please ensure a mix.exs file is available". – Throwback