erlang17.4 + centos6.4 install

来源:互联网 发布:淘宝全球购官网 编辑:程序博客网 时间:2024/05/20 00:51
#!/bin/sh
 
erl_url="http://www.erlang.org/download/otp_src_17.4.tar.gz"
prefix="/usr/local/erlang"
 
yum update -y
yum upgrade -y
 
#yum groupinstall -y "Development Tools" "Perl Support"
yum groupinstall -y "Development Tools"
 
yum install -y kernel-devel m4 fop ncurses-devel openssl-devel tk unixODBC unixODBC-devel
 
if[ ! -f "otp_src_17.4.tar.gz" ];then
    wget -c -O otp_src_17.4.tar.gz $erl_url
fi
 
tar zxvf otp_src_17.4.tar.gz
cd ./otp_src*/
 
./configure --prefix=$prefix --without-javac \
    --enable-kernel-poll \
    --enable-threads \
    --enable-dynamic-ssl-lib \
    --enable-shared-zlib \
    --enable-smp-support \
    --enable-hipe
 
make && make install
 
#if [ ! -s "~/.bashrc" ]; then
#    touch ~/.bashrc
#fi
#echo 'export PATH="/usr/local/erlang/bin:$PATH"' >> ~/.bashrc
#source ~/.bashrc
ln -sfv $prefix/bin/* /usr/local/bin/
 
yum clean all
 
erl -noshell -eval"erlang:display('Erlang Success Install')"-s init stop
原创粉丝点击