简体   繁体   中英

Mix (elixir) no such file or directory

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

在我的情况下,我已经使用sudo安装了elixir,所以当你尝试在没有sudo的情况下调用它时,你会收到此错误。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM