llivingston
Tried to install Elixir but my system has no mix command
I have run the installation instructions found in the Blockscout recipe. But my system has no mix command, so clearly something is missing.
Most Liked
dimitarvp
You are much better off installing Erlang and Elixir through asdf. After you do that, set up global and/or local (inside a project dir) versions and you should be good to go.
Oh, and to have the necessary tooling for downloading dependencies you should also run this after successful installations: mix local.rebar --force && mix local.hex --force.
derpycoder
I use asdf as well! It really helps pin the version to whatever we want for reproducible builds.
Here are the commands I use:
brew install asdf
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf install
mix do local.hex, local.phx
asdf reshim elixir
Here’s the content of .tool-versions file, that needs to be in root of your project folder, for asdf to read:
| elixir | 1.14.0-otp-25 |
| erlang | 25.1.1 |
P.S. Mix is a build tool that ships with Elixir that provides tasks for creating, compiling, testing your application, managing its dependencies and much more!!
AstonJ
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









