Elixir Version Managers

wiki
stickies

#21

Nope, but on the other side, I simply removed gemsets all together from 3 repos that used it. As gemset gives no advantages (at least I really can’t see any), and really work only with rvm.


#22

What is the advantage of a .ruby-gemset over using a Gemfile with Bundle?


#23

Gemsets give you…

…compartmentalized independent ruby setups. This means that ruby, gems and irb are all separate and self-contained - from the system, and from each other.

https://rvm.io/gemsets/basics


#24

Ok, but what advantage that gives you? All of the gems and ruby installations are practically immutable. They do not change in any way not matter what application is run (do they?). So there is no advantage.

Anyway were diverging :slight_smile: Asdf work’s great with elixir, and any IDE/Editor I tried to write code in. If you need gemsets functionality you’re out of luck with asdf :frowning: Just like you’re out of luck when you need full rustup functionality when using rust.


#25

I used gemsets a lot before bundler was a thing. I think that they are just a relict from those days. Also they give you a separation of environments which can’t leak by design, no bundle exec necessary.


#26

I’ve read that there are performance benefits; with gemsets you have just the gems you need for that application, without them, your ruby install could have hundreds of gems (who’s gem-specs need to be parsed) - so you get faster loading.

For chruby, there’s https://github.com/postmodern/gem_home

I haven’t used them myself as I’ve not run into any performance issues.


#27

Just tried asdf and it worked like a charm. I’ll use it now for everything, many thanks for the recommendations!


#28

Super simple way to install and manage Elixir/Erlang with asdf -> article


#29

article should probably mention installing elixir compiled against the installed otp version eg. something like asdf install elixir 1.5.0-otp-20 - so all features are available - read more here https://github.com/asdf-vm/asdf-elixir#elixir-precompiled-versions


#30

Many thanks! Fixed :thumbsup:


#31

I install elixir with homebrew so if I want to manage elixir and use different versions I need to uninstall and use some of these managers and install again with the manager?


#32

I’m not a Mac user, but that sounds right to me.

Of the options listed here I’ve only used asdf, and it’s very quick and easy to get set up with. In Linux I need to source .bashrc after following the installation instructions, which I mention in case it’s the same for Mac OS.


#33

Yes, I saw something about this. Thank’s BrightEyesDavid!


#34

Hi,

I have the same problem. I want to use multiple versions of elixir in case I want to try out a version or test in older versions but I have an existing elixir homebrew install and dont want to break anything in my system if I had to do adsf.

Has anyone had any problems?

Thanks!


#35

@demem123 asdf is easy to install, and also easy to remove or (temporarily) disable. The self-contained nature is the whole selling point of version managers :slight_smile: .


#36

thanks! I will try it out. I was worried since I dont want to immobilize my dev machine if it broke.

I think I might need to install multiple versions because still need to catch up. Was just learning earlier version and there is a newer one just released! =)


#37

It will not broke.
ASDF is the best choice for this.


#38

thanks! i’ve just started using it :slight_smile:


#39

At this point Is there any versions managers for elixir on Windows?


#40

I don’t use Windows for development, but I think choco is supposed to be good.

https://chocolatey.org/packages/Elixir