beno

beno

I am in the process of setting up a new server for some project and this one has CentOS 7 on it (new to me). To my surprise, there is no support for elixir in their yum package manager and the only rpm package I could find is for version 0.12 (!). CentOS is a pretty popular server platform I think, so I didn’t expect that.

Now building from source always possible of course, even though it is something the CentOS people expressly advise against, but in general I noticed a very mixed picture when it comes to package support for various platforms: https://pkgs.org/download/elixir

Is that something we can fix? I think it is holding back the language unnecessarily. Has anyone else encountered this?

Showing Posts 1 to 10

LostKobrakai

LostKobrakai

Afaik the core teams position is that it’s to be in the communities responsibility to care for package support not theirs. There are simply many systems out there and packaging is also something you need some hardware for, which I wouldn’t say should be the burden of the core team. On the other hand maybe look at the packages erlang solutions does supply. It seems like they currently only have erlang for cent os, but maybe they could also package elixir for cent os.

wmnnd

wmnnd

Erlang Solutions offer up-to-date packages for Ubuntu and Debian.
For Cent OS, they have Erlang/OTP packages only but maybe that’s already useful enough for you?
Check out their packages here: Erlang and Elixir Packages Download - Erlang Solutions

beno

beno OP

Thanks, Erlang is not the issue, it is specifically Elixir that is MIA. I have now used one of the version managers (kiex), but even there I get complaints about “unknown Linux distro” and such. Anyway, I got it working, but I am still quite puzzled that a mainstream distribution like CentOS is not better supported.

outlog

outlog

I would suggest using something like GitHub - asdf-vm/asdf: Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more · GitHub - you want dev/staging/prod to have as matching as possible installs - and you’ll also want to be prepared for zero-day updates, and not be in the hands of a specific distro package maintainer.. you might also want to run multiple versions of erlang/elixir on a single server..

wmnnd

wmnnd

It’s really the folks at Centos who don’t offer better support for Elixir :slight_smile:

LostKobrakai

LostKobrakai

And nobody in the elixir community has stepped up yet to maintain a cent os package. I’m not aware the core team supports any package repositories at all. Even the docker image tagged “official” is provided by someone in the community.

easco

easco

I was also surprised to find that Elixir doesn’t have community support for CentOS. For a project I worked on several months ago, I have an Ansible script that install Erlang and Elixir to a CentOS build server. It grabs Erlang from the Erlang Solutions build and then installs Elixir from source. The relevant parts are reproduced below in the hopes that it will help. (For deployments we used Distillery and ERTS)

  vars:
    erlang_dev_dependencies:
      - git
      - gcc
      - gcc-c++
      - glibc-devel
      - make
      - ncurses-devel
      - openssl-devel
      - autoconf
      - java-1.8.0-openjdk-devel
      - wxBase.x86_64

  - name: install epel-release
    yum: 
      update_cache: yes 
      name: epel-release
      state: present

  - name: Install pacackages required to build erlang
    yum: 
      name: "{{ item }}"
    with_items: "{{ erlang_dev_dependencies }}"
  
  - name: Download erlang-solutions rpm package
    get_url: 
      url: http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
      dest: ./erlang-solutions-1.0-1.noarch.rpm

  - name: install erlang from that package
    yum: name=./erlang-solutions-1.0-1.noarch.rpm

  - name: install erlang
    yum: name=erlang

  - name: Create source directory
    file: path=/root/src state=directory

  - name: clone elixir repo
    git:
      repo: https://github.com/elixir-lang/elixir.git
      dest: /root/src/elixir
      version: v1.6

  - name: build and test Elixir
    make:
      chdir: /root/src/elixir
      target: test

  - name: Install Elixir
    make:
      chdir: /root/src/elixir
      target: install
NobbZ

NobbZ

The answer is simple given the version of Erlang available in EPEL:

You can not run elixir 1.0 on OTP 16.

OvermindDL1

OvermindDL1

I also highly recommend this. Using Erlang/Elixir on RHEL and similar ones is always so sorely out of date otherwise… Or Docker.

AstonJ

AstonJ

Agree too!

Even with Ruby (and things like Postgresql) I do not use the CentOS versions - CentOS prefer stable/old packages and while that’s great for system components, when it comes to things like languages you’ll usually want to use more recent versions :smiley:

Same with different versions - some of my Ruby apps for example, use different Ruby versions.

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
Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
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
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
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
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
aseigo
ICal is a library for interacting with iCalendar data. It parses iCalendars into typed Elixir structs via ICal.from_ics, and can prepare ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews