blackode
How I upgraded to Elixir v1.4.0 on Ubuntu
Elixir Upgrading is so Simple in Ubuntu and It worked for me
Ubuntu 16.04
git clone https://github.com/elixir-lang/elixir.git
cd elixir/
git checkout v1.4
make clean test
sudo make install
In case if you already cloned, then you need to pull the code as git pull from the elixir directory
Most Liked
hubertlepicki
well. Don’t get too excited about your set up.
You have not upgraded Ubuntu-shipped elixir this way. The proper way of doing it would be by installing a DEB package.
You have installed elixir the manual way. Which means it’s installed without any dependencies and thanks to $PATH priority you are using newer version of Elixir. But the old one is also in the system.
I do not think this is proper set up and if you install packages this way, you will have trouble in the long run.
You can install packages provided by Erlang Solutions as instructions show here: Erlang and Elixir Packages Download - Erlang Solutions
These are for both: Elixir and Erlang. Uninstall the system-provided versions, add those repositories and install what you need. They will update nicely.
Having said that, they don’t have ELixir 1.4 released just yet. It will take them a few days at least to do so I think.
You also have the option to use version manager, that is independent from system packages. I use asdf Erlang and Elixir Packages Download - Erlang Solutions
The version manager allows you to have multiple versions of Erlang, Ruby, Node or Elixir installed at the same time and switch between those on per-project basis. Very useful if you run more than one project. I highly recommend you going this route.
vic
asdf .tool-versions documentation mentions that you can specify a version like ref:master or even path:location. I’m using the later to keep a local elixir dev version for myself.
hubertlepicki
Sure. You also do not really have to do make install, so it never installs elixir in system. Just run make and set up $PATH correctly so it uses the elixir from the build destination directory. It will work.
Popular in Discussions
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
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









