In this section, we will learn how to install erlang on CentOS 6.4, the specific Erlang version is the R15B03-1.
Before installation, you must install other software. Otherwise, some software modules that are not dependent on the software may fail during installation.
1, first of all to install GCC GCC-C ++ Openssl modules since:
Yum-y install make gcc-c ++ kernel-devel m4 ncurses-devel openssl-devel
2. Install the ncurses module again.
Yum-y install ncurses-devel
Yum install ncurses-devel
3. Download The erangsource code file otp_src_r15b03-1.tar.gz, and grant permissions to the file and decompress the file:
Chmod + x otp_src_R15B03-1.tar.gz
Tar-xzvf otp_src_R15B03-1.tar.gz
Mv otp_src_R15B03-1 erlang_R15B # Rename and decompress thick files
4. The following is a major installation of erlang. perform the following operations in sequence:
Cd erlang_R15B/
. /Configure -- prefix =/usr/local/erlang -- with-ssl -- enable-threads -- enable-smp-support -- enable-kernel-poll -- enable-hipe -- without-javac/ /without java compilation, so remove java to avoid errors
Make & make install // install after compilation
5. Configure the erlang environment:
Vi/etc/profile
Export PATH = $ PATH:/usr/local/erlang/bin
Now erlang has been configured. Now let's take a look at the result:
# Whereis erlang
Erlang:/usr/local/erlang