Unable to install erlang on cent os

本小妞迷上赌 提交于 2019-12-09 10:34:33

问题


While installing erlang on cent os I got the following error

Error: Package: erlang-crypto-R16B03-0.2.el6.x86_64 (erlang-solutions)

Requires: libcrypto.so.10(libcrypto.so.10)(64bit)

Error: Package: erlang-crypto-R16B03-0.2.el6.x86_64 (erlang-solutions)

Requires: libcrypto.so.10(OPENSSL_1.0.1)(64bit)

You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

I searched around on google and found that the probelm can be solved by installing openssl-devl. So I did that and tried installing erlang again but got the same error.

How can I install the latest version of erlang on cent os 6.4?


回答1:


How you are installing it? According to Riak's documentation, you use:

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

And then, you build Erlang:

wget http://erlang.org/download/otp_src_R15B01.tar.gz
tar zxvf otp_src_R15B01.tar.gz
cd otp_src_R15B01
./configure && make && sudo make install

Installing Erlang on GNU/Linux




回答2:


You can install erlang using erlang-solution repo

  • Install repo

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

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

  • Install erlang

    sudo yum install erlang




回答3:


Using EPEL from Fedora is a surefire way on Centos 6. I currently have erlang-crypto-R14B-04.3.el6.x86_64 installed. If you have different repos enabled it could be a conflict or that there is an issue with the package from the other repo (I would recommend disabling whatever repo that provides it or at least ignoring erlang from that repo).

Here is a simple way to install EPEL on Centos

rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
yum -y install erlang-*



回答4:


your error is

"Error: Package: erlang-crypto-R16B03-0.2.el6.x86_64"

so you can download&install R16B03

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

tar -zxvf src_R16B03.tar.gz

cd src_R16B03.tar.gz

yum localinstall erlang



回答5:


This worked for me on centos7...

sudo yum install epel-release
sudo yum update
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
sudo yum install erlang



回答6:


To install erlang in centos offline.Follow below steps,

  1. We need to have one internet connected machine to download rpm's.

    yum install yum-plugin-downloadonly -y
    
    yum install --downloadonly --downloaddir=/home/user/ erlang
    

    All of erlang dependencies packages downloaded as rpm on /home/user/ directory

  2. Now copy all rpm's to offline machine in any directory ( eg., /home/user/ )

    Type following command to install erlang with its dependencies too.,

    cd /home/user/
    
    rpm -Uvh *.rpm
    

It's Done!

check using command,

erl

(press Ctrl+c twice to get exit from erl command )



来源:https://stackoverflow.com/questions/21186276/unable-to-install-erlang-on-cent-os

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