1、下载otp_src_18.3.tar.gz
wget http://erlang.org/download/otp_src_18.3.tar.gz
2、解压otp_src_18.3.tar.gz
tar -xzvf otp_src_18.3.tar.gz
3、otp_src_18.3.tar.gz编译需要依赖下面的包
gccgcc-c++unixODBC-developenssl-develncurses-devel
安装依赖包: yum install -y gcc gcc-c++ unixODBC-devel openssl-devel ncurses-devel
4、安装otp_src_18.3.tar.gz
./configure --prefix=/opt/erlang --without-javac
make
make install
5、设置环境变量
vim ~/.base_profile PATH=$PATH:/opt/erlang/bin export PATH :wq source ~/.base_profile
注:config这一步会显示:"wx: wxWidgets not found, wx will NOT be usable"。
不安装wxWidgets不能使用debugger。
安装wxWidgets 需使用下面configure
./configure --with-opengl --enable-debug --enable-unicode
转载请注明原文地址: https://ju.6miu.com/read-1123153.html