bend

bend

I’m a beginner, using Linux MInt 18.3 Cinnamon. I installed elixir with apt, but it only found version 1.1, and I’d like to use the newest version, but I have been having trouble. From memory here is what happened:

Tried to install elixir 1.8.2 from source. Got error about Erlang (I had version 18).
Installed Erlang 22. Got an error trying to install Elixir.
Installed Erlang 20. Got an error installing Elixir about being compiled in a different version of Erlang. optcode 150-something, but used optcode 168.
Installed Version 21. Same error - only have up to optcode 163, but need up to 168.
Read some github entry which suggest that an error was fixed after 21.0.
Installed 21.1. Crashed, at some make file recipe for targe erlang failed.
Installed 21.2. Crashed, makefile 64: recipe for target erlang failed.

Not sure if its relevant, but I noticed that erlang --version returns command not found: erlang.

Can anyone suggest for me a combination of elixir version and erlang version that should work together? Or help me resolve this problem another way?

I’ve been using Erlang OTP.

Showing Posts 20 to 11

alicektx

alicektx

…just joined here in order to clarify a few things for future reference,
hopefully it will save others from similar headaches as per above.

Erlang Solutions’ instructions per se indeed don’t / won’t work on Mint ‘as is’. But…
that has absolutely nothing to do though whatsoever with Mint somehow having a different package base or dependencies etc.
The ‘fault’ lies in their installer’s routine, erlang-solutions_1.0_all.deb…that’s what’s to be blamed :wink:

What it does, is that it parsers /etc/issue for the identification of the numerous Ubuntu & Debian versions,
then nicely sets the repositories accordingly to the version detected.
But…by parsing the non-standard /etc/issue, which will 99% return a different id,
in any Ubuntu / Debian derivative out there…it fails on such.

A by far more proper way would be if they checked /etc/lsb-release.
Actually, even better than such, if we are to go with the freedesktop standards nowadays, /etc/os-release instead.
Although as we all understand…admittedly even then some distros would fail to comply, lol…

Hopefully Erlang Solutions will revisit their os detection routine at some point,
at least without relying entirely on /etc/issue…

For the time being, on Ubuntu derivatives, someone can ‘bypass’ the erlang-solutions_1.0_all.deb method,
by following these instructions here…
https://forums.linuxmint.com/viewtopic.php?p=1603722#p1603722
That’s for older Mint 18 (xenial). For Mint 19 (bionic), obviously the line should instead be ubuntu bionic contrib…

…bend wasn’t the first one to be hit by this, that’s what i’m trying to say :wink:
Just noticed his thread over at LM’s forums today…
where people also told him to use the erlang-solutions.deb,
apparently unaware of what goes on. Had i seen his thread earlier,
i’d have posted / replied there, but maybe that’s for the better…
Thought i’d mention the above here, so in case some other fella in the future,
from whatever other Ubuntu / Debian derivative comes asking,
can probably understand what’s going on & save his/her time…
Or so that you guys around here can guide him on what to do to easily add the repos & packages properly:
all that’s needed is to add the appropriate matching repo in sources.list
Or maybe the ES people eventually notice it, and then fine-tune / somehow tweak the routine in their ‘setup’ .deb… :slightly_smiling_face:

PragTob

PragTob

Hello,

fellow Linux Mint user here!

The erlang solutions route described for Ubuntu here should work - at least it used to for me. I also switched to asdf though for pure convenience, and yes erlang takes a while to compile but you don’t install new erlang versions all that often :slight_smile:

bend

bend OP

Thanks NobbZ!

NobbZ

NobbZ

ESL does not build for Linux Mint, so whatever you install seems to assume a version of ubuntu or debian that di not receive any further updates after 1.3.3. As far as I can tell, it assumes Debian Wheezy, as this in fact did not receive the 1.3.4 update from what I see on the ESL download page.

Please do not install random packages that are not meant for your system.

bend

bend OP

I reinstalled Linux Mint version 19 this time, and was able to get Elixir 1.9 working. I tried apt install elixir, but still I the latest version it could find was 1.3.3. I removed it, and removed erlang-base.

What eventually worked was to install erlang by apt install erlang-base and then to download the precompiled elixir 1.9 from the elixir-lang website. (I also tried to compile it myself, but this did not work - there was an error finding something from erlang). I was able to add it my PATH and everything is working smoothly now.

The instructions to install the erlang-solutions .deb file did not work for me - I still only got version 1.3.3 of elixir.

NobbZ

NobbZ

As far as I remember asdf compiles from source but silencing the output. Just wait.

alexiss

alexiss

On my machine erlang installation running above 7 minutes - may be you should wait a little longer

Cochonours

Cochonours

That’s why it’s better to always use a package manager. I also fear that something got broken somewhere during one of your attempts, and even if you end up making it work with asdf or others you might continue experiencing weird things down the line. If I were you I would reinstall the OS (no Arch Linux :p), then either use asdf or the deb from erlang solutions (I think that’s what I did when I was on Mint, and also on debian ; it worked well).

bend

bend OP

I’m not confident I can figure out how to uninstall everything, so maybe my best bet is to get asdf working. I followed the instructions on how to do it, and when installing the erlang version it got as far as saying it was missing fop and another tool for building documentation. Usually when I was installing from source this is where the installation ended, but with asdf I waited 5 minutes before killing the process as it seemed like the command would never terminate. I also got stuck on the command

bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring

it said I was waiting for a key for a long time.

isaac-rstor

isaac-rstor

if you uninstall everything these incantations should work.

#####################################################
# install elixir (only need to do once)
#
# UBUNTU:
#

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb 
sudo dpkg -i erlang-solutions_1.0_all.deb

sudo apt-get update
sudo apt-get install esl-erlang
sudo apt-get install elixir

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews