blackode

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

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

vic

Asdf Core Team

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

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.

Where Next?

Popular in Discussions Top

chuck
Let me start by stating an assumption: Phoenix is a great approach to building REST APIs. There are many reasons for this, but I will ass...
New
AlexMcConnell
The reason that Rails is as popular as it is is because it’s very easy for relatively inexperienced developers to get a lot of work done....
588 19652 166
New
Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19327 150
New
CharlesO
Erlang :list.nth simple, but 1 - based nth(1, [H|_]) -> H; nth(N, [_|T]) when N > 1 -> nth(N - 1, T). Elixir Enum.at … coo...
New
sergio
There’s a new TIOBE index report that came out that shows Elixir is still not in the top 50 used languages. It also goes on to call Elix...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
100phlecs
Are there any downsides, like perf issues, to putting all functional components in CoreComponents as long as you prefix it with the conte...
New
sashaafm
Piggy backing a bit on @dvcrn topic BEAM optimization for functions with static return type?, I’ve been trying to understand in a deeper ...
New
Markusxmr
Since Drab has been developed for a while in the open, introducing the Liveview functionality in a way it happend appears to undermine th...
New

Other popular topics Top

WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36352 110
New
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
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54120 245
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement