Emily
I installed Elixir using asdf. elixir -v shows the install was successful. Yet I’m getting “mix: command not found” errors.
~./bashrc path is referenced:
. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"
/etc/profile.d/elixir.sh is referenced:
export PATH=$PATH:/usr/local/lib/elixir/1.13.2-otp-24/bin
Erlang install is: erlang 24.2.1
Elixir install is: elixir 1.13.2-otp-24
I believe they are compatible.
I must be missing a path reference somewhere?
What am I doing wrong?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
massimo
two things you can try
asdf reshimand
export PATH=~/.asdf/shims:$PATHEmily
That’s not working.
If install outside of asdf using command:
sudo apt-get install elixirThe mix command then works.
Problem is I need to install a specific version.
Is there a way to do that without using asdf?
cloudytoday
Is mix binary present in
$HOME/.asdf/shims/mix? Did you doasdf global elixir (version)?Stratus3D
asdf maintainer here. There couple that could be causing this. If what @massimo said did not work, I’d suggest re-reading the asdf getting started guide (Getting Started | asdf) and make sure you follow the instructions for your operating system and interactive shell.
If you do all that and it still doesn’t work, it means there something else interfering with asdf in your shell. I’ve found the following commands to be helpful when debugging versions installed with asdf:
Both of these commands should print out a one or more paths to
mixandelixirexecutables on your machine. If things are working properly you should see the asdf shim paths listed first ($HOME/.asdf/shims/mixand$HOME/.asdf/shims/elixir).AstonJ
If you’re on a Mac my guide here might be worth a look too: How to set-up a Ruby and Elixir dev environment on macOS – (via @AstonJ)
adamu
I see you’re asking questions about
mixnow, so assuming you resolved this. Could you share the solution?Emily
I tried so many things… I should have kept better notes. I think the solution ended up being some missing dependencies upstream.
Emily
Here’s what finally worked:
To set the version of Elixir:
cd ~.tool-versionsfile exists by runningls -a. If it doesn’t exist, create it by runningtouch .tool-versions..tool-versionsfile with a text editor of your choice. For example, you can use the following command to open it with nano:nano .tool-versionselixir 1.13.2-otp-24.To check the current version of Elixir:
elixir -v.This will display the version of Elixir that is currently set on your system. If you’ve followed the steps above and set the version to
1.13.2-otp-24, then runningelixir -vshould display that version.dimitarvp
Same effect should be achievable by running
asdf global elixir 1.13.2-otp-24btw.adamu
That’s what I said in April, but Emily reported it didn’t work