Centos 7 install erlang

Centos is minimum installation.

erlang official website Download: https://www.erlang.org/downloads

erlang solutions address: https://www.erlang-solutions.com/resources/download.html

Preparation, installation wget

yum install -y wget

 

A, yum installed

Official documents address: https: //www.erlang-solutions.com/resources/download.html

1, the installation dependencies

yum install -y epel-release

2, add the repository entry

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

3, installation

yum  install -y erlang

4, verify that the installation was successful

erl -version

Appears "Erlang (SMP, ASYNC_THREADS, HIPE) (BEAM) emulator version 10.5" prove successful installation

 

Two, rpm installed

1, the installation dependencies

yum install -y epel-release

2, download the rpm package

wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/esl-erlang_22.1-1~centos~7_amd64.rpm

3, installation

yum install esl-erlang_22.1-1~centos~7_amd64.rpm

4. Verify

erl -version

Appears "Erlang (SMP, ASYNC_THREADS, HIPE) (BEAM) emulator version 10.5" prove successful installation

 

Third, the source installation

0, and the whole process dependencies erlang install command

yum install -y gcc
cd /usr/local/bin
wget http://erlang.org/download/otp_src_22.1.tar.gz
tar -zxvf otp_src_22.1.tar.gz
cd otp_src_22.1.tar.gz
yum install -y perl
./configure --prefix=/usr/local/bing/erlang
yum install -y ncurses-devel
./configure --prefix=/usr/local/bing/erlang
yum install -y openssl openssl-devel
yum -y install unixODBC-devel
./configure --prefix=/home/erlang --without-javac
make && make install

1, install gcc

yum install -y gcc

2, choose to install erlang folder, download erlang

cd /usr/local/bin
wget http://erlang.org/download/otp_src_22.1.tar.gz

3, unzip and enter the directory to erlang

tar -zxvf otp_src_22. 1 . tar gz 
cd otp_src_22.1.tar.gz

4, Configuration

./configure --prefix=/usr/local/bing/erlang

5, the above configure command newspaper "error: Perl version 5 is required to build the emulator!" Wrong, because not installed perl, use the following command to install

yum install -y perl

6, again using the configuration command

./configure --prefix=/usr/local/bing/erlang

7, this time will be reported to "error: No curses library functions found" error, because no install ncurses-devel, use the following command to install

yum install -y ncurses-devel

8, again using the configuration command

./configure --prefix=/usr/local/bing/erlang

9, at this time there will be a bunch of information

 Some relevant information waring and so can be ignored, concern is the area within the "APPLICATIONS DISABLED", here is our lack of components, you need to install one by one, "No Java compiler found" that if you are using gcc compiler, you can ignore it. See "APPLICATIONS DISABLED" information are missing oepnssl and odbc.

10, installation opensll

yum install -y openssl openssl-devel

11, installation odbc

yum -y install unixODBC-devel

12, after the dependencies are installed, and then use the configuration command to ignore the java

./configure --prefix=/home/erlang --without-javac

13, compiled a long wait.

make && make install

14, configure the environment variables and the environment variables to take effect

echo 'export PATH=$PATH:/usr/local/bin/erlang/bin' >> /etc/profile
source /etc/profile

 15. Verify that the installation was successful

erl -version

Appears "Erlang (SMP, ASYNC_THREADS) (BEAM) emulator version 10.5" Information is proved that the installation was successful.

Guess you like

Origin www.cnblogs.com/swyy/p/11582309.html