News Ticker

Error: No package erlang available.

Java EE

If you are trying to install Erlang on CentOS/7 you might be presented with the following errors:

Screen Shot 2016-05-03 at 17.11.57

These errors mean you don’t have the updated RHEL EPEL Repo from which to fetch Erlang builds. You update your repo as follows:

Screen Shot 2016-05-03 at 17.33.13

Screen Shot 2016-05-03 at 17.33.32

Screen Shot 2016-05-03 at 17.33.47

Retry installing Erlang.

Screen Shot 2016-05-03 at 17.37.17

For centos 5 and 6 visit this blog post.

Thanks to jake_morrison from Reddit who posted this response.

The Erlang packages in the distro are not kept up to date, and go stale pretty quickly with the pace of Erlang development.

It’s better to use the packages from ESL: https://www.erlang-solutions.com/downloads/download-erlang-otp

Relevant Ansible tasks:

- name: install esl key
  rpm_key: state=present key=http://packages.erlang-solutions.com/rpm/
    erlang_solutions.asc
  become: true

- name: install esl repo
  copy: src=etc/yum.repos.d/erlang-solutions.repo dest=/etc/yum.repos.d/
    erlang-solutions.repo owner=root group=root mode=0644
  become: true

- name: install erlang
  yum: name=erlang state=latest update_cache=yes
  become: true

See original reply here.

Leave a Reply

%d bloggers like this: