erlang is no longer supported by Red Hat Enterprise Linux?

情到浓时终转凉″ 提交于 2019-12-11 04:36:07

问题


I'm trying installing Erlang on my REHL7.2, but unfortunately I failed. I tried two approaches

  1. First I tried downloading a RPM package from official site of erlang (in fact the rpm package is for CentOS, but there's no RPM package for RHEL anyway), but

error: Failed dependencies:

libwx_baseu-2.8.so.0()(64bit) is needed by esl-erlang-19.0-1.x86_64

libwx_baseu-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-19.0-1.x86_64

  1. Then I tried

$ wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

$ rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

But it failed too because

No package erlang available.

Error: Nothing to do

I wonder whether Erlang is no longer supported by RHEL? Otherwise how can I install Erlang on my RHEL7.2?


回答1:


One simple solution to install the Erlang Solutions package is install the epel repository:

yum install epel-release

Then

    wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
    rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
    sudo yum install erlang

The epel repo contains the libwx_* libraries required.




回答2:


I have figured it out! I found two solutions.

The first solution which is also the easiest way is to install a zero dependency version of erlang, please refer to my another Question. But I only tried this way after installing erlang from source, so if you failed this way, just try the following soltuion.

The other one is to build erlang from source (or by kerl which is essentially the same thing).

  1. Install necessary dependencies:$sudo yum install ncurses-devel openssl-devel *openjdk-devel unixODBC unixODBC-devel
  2. Download source code of erlang, unzip it and cd into the direcotry
  3. sudo ./configure sudo make sudo make install

Please refer to this article.

Thank you everyone!




回答3:


As instructed here:

enter link description here

Run the following commands (note: the commands on the above link use R15B01, but in the following commands, I changed it to the last release of Erlang (R15B03) It will take a while to finish with the installation. Run commands line by line

sudo yum install gcc glibc-devel make ncurses-devel openssl-devel autoconf

wget http://erlang.org/download/otp_src_R15B03.tar.gz

tar zxvf otp_src_R15B03.tar.gz

cd otp_src_R15B03

./configure && make && sudo make install

After everything is done, you will be still at otp_src_R15B03 where Erlang is installed. Type erl and Enter, then, it should run and open Erlang prompt. I tried running Erlang from my home directory and from the root by just typing erl and it worked too. This way, Erlang is working good for me. To quit Erlang press CTRL + g then q and Enter

There is another way to install and useful info on this link:

enter link description here




回答4:


Try this, worked for me.

 wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
 rpm -ivh epel-release-latest-7.noarch.rpm

 sudo yum install erlang erlang-nox


来源:https://stackoverflow.com/questions/38604162/erlang-is-no-longer-supported-by-red-hat-enterprise-linux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!