imetallica

imetallica

How to use homebrew to install old Elixir versions?

Hey folks, I’m trying to install Elixir 1.3 using brew: brew install elixir@1.3.4 but without success. Is there a way to do that using brew?

Thanks in advance,

I.

Marked As Solved

chrismccord

chrismccord

Creator of Phoenix

I’m no help with brew, but I’ve been a happy user of kiex for some time now. It builds from source and allows you to seamless switch versions. You might consider it instead of brew, which would let you simply do kiex install 1.3.4

Also Liked

LostKobrakai

LostKobrakai

Homebrew does not keep older versions for all of their packages. Elixir is one of those where there aren’t older versions. You can look for older packages like this: brew search [packagename]. If there are older versions, they’ll pop up.

romenigld

romenigld

So for change the version it’s needed to use a manager?
I already have installed with brew and for use diferent versions I install right now the asdf.
It’s very simple this manager and I liked.
My question is, I need to uninstall the elixir and Erlang with homebrew?
Or just keep them? Because I know it’s a lot capacity keep them.

imetallica

imetallica

Thanks folks, I’ll give a shot at kiex then. :slight_smile:

D4no0

D4no0

What specifically you couldn’t make work with asdf? Theoretically this is the best option as it compiles OTP from source.

evnp

evnp

I didn’t intend to disparage asdf, I’m just not a user of it at present so there are likely some familiarity gaps. The tests kept failing after installing older Elixir versions, which in retrospect may have been happening because I didn’t have the correct/compatible versions of Erlang installed (the test failure output didn’t help point me in any useful direction, unfortunately). I couldn’t find a way to skip the tests, which seemed to abort the whole install when they fail. Even after I did get an install to pass (1.16 I think, only one that worked) and added some incantations to my .bashrc, the elixir command would do nothing, no output, not even “command not found.” I’m sure this was due to some form of user error, but after trying out kiex no problems like these appeared, and I was up and running in a couple minutes. At a certain point the time for troubleshooting is up, and the path of least resistance is what you need to run with.

I’d be happy to try all this again and open a github issue or two (for anything that doesn’t prove to be user error) if that’s helpful at all.

Where Next?

Popular in Questions Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
Werner
Hi, I’m using Ubuntu 18.04 and after updating to OTP-24.0 yesterday i have this warning when I run “mix local.hex”: 14:57:30.512 [warn] ...
New
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

Other popular topics Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
AstonJ
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New

We're in Beta

About us Mission Statement