系统环境:CentOS 7
- 下载源码
我用的版本是18.3
- 安装依赖库
yum install build-essential m4 openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
yum -y install java-1.7.0-openjdk*
- 配置
./configure --prefix=/usr/local/erlang_18.3 --enable-hipe --enable-threads --enable-smp-support --enable-kernel-poll --with-opengl --enable-debug --enable-unicode
- make && make install
- 配置环境变量
以root身份vim /etc/profile
ERL_HOME=/usr/local/erlang
PATH=$ERL_HOME/bin:$PATH
export ERL_HOME PATH
保存后执行: source /etc/profile
时间: 2024-11-03 21:54:58