# Install necessary dependencies
sudo yum install -y gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git
Download link: https://www.erlang.org/downloads
# Enter the download directory
cd /home/download
# download
wget http://erlang.org/download/otp_src_20.2.tar.gz
tar -zvxf otp_src_20.2.tar.gz
# Enter the root directory
cd otp_src_20.2.tar.gz
# Compile&installation
. /otp_build autoconf
. /configure && make && sudo make install
# Enter the erlang command line to indicate success
erl
# Create yum source
sudo vi /etc/yum.repos.d/rabbitmq-erlang.repo
# document content
[ rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
sudo yum install -y erlang
# Enter the erlang command line to indicate success
erl
https://github.com/erlang/otp/blob/maint/HOWTO/INSTALL.md
https://github.com/rabbitmq/erlang-rpm
https://zfanw.com/blog/install-erlang-on-centos-7.html
Recommended Posts