Error: No package erlang available.

If you are trying to install Erlang on CentOS 6.x or 5.x you might get below errors

[root@abcdef install]# yum install erlang
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: centos.mbni.med.umich.edu
 * extras: mirror.linux.duke.edu
 * updates: mirror.linux.duke.edu
Setting up Install Process
No package erlang available.
Error: Nothing to do

If you are getting these errors mean you don't have RHEL EPEL Repo updated to fetch Erlang builds. So you will need to update your repo. 

CentOS 5.x :

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

CentOS 6.x :

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Now You can try installing Erlang with command below

# yum install -y erlang

Comments

  1. On Centos/7 do the following:

    sudo wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm

    and

    sudo wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

    then

    sudo rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm

    ReplyDelete

Post a Comment

Popular posts from this blog

How to boot Samsung Galaxy SL( GT-I9003) in recovery mode

How to flash CWM Recovery to Samsung Galaxy SL( GT-I9003) using Odin

How to Factory Reset or Hard Reset Samsung Galaxy SII ( GT-i9100)