安装 gcc
sudo apt-get build-dep gcc
sudo apt-get install libncurses5-dev
编译报错:
********************** APPLICATIONS DISABLED **********************
crypto : No usable OpenSSL found
odbc : ODBC library - link check failed
ssh : No usable OpenSSL found
ssl : No usable OpenSSL found
********************** APPLICATIONS INFORMATION *******************
wx : wxWidgets not found, wx will NOT be usable
********************** DOCUMENTATION INFORMATION ******************
documentation :
xsltproc is missing.
fop is missing.
xmllint is missing.
The documentation can not be built.
解决方法安装:
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install unixodbc unixodbc-dev
./configure --prefix=/opt/erlang --without-javac
sudo make
sudo make install
sudo apt-get install libtool
来源: http://www.jianshu.com/p/5964a25e885a