使用git下载编译erlang

git clone https://github.com/erlang/otp
cd otp
git tag
git checkout -b OTP-18.2.2 OTP-18.2.2
./otp_build all
export LANG=en
./configure --prefix=/usr/local/otp-18.2.2
make
make install 
make install-docs

 上面的好像有错,贴一个从erlang官网下载的编译过程吧:

tar xzf otp_src_18.2.1.tar.gz
export LANG=en
cd otp_src_18.2.1
export ERL_TOP=`pwd`
./configure --prefix=/usr/local/otp_src-18.2.1 && make clean
make && make tests && make install && make install-docs

 

posted @ 2016-01-12 21:25  格通  阅读(378)  评论(0编辑  收藏  举报