-- Install Erlang
1. Download Erlang source code
Http://www.erlang.org/download.html
2. decompress the source code
Tar-zxvf otp_src_rxxxx.tar.gz
./Configure -- prefix =/usr/local/Erlang
Make & make install
3. If ODBC: ODBC library-link check failed is missing, install
Apt-Get install unixodbc
Apt-Get install unixodbc-Dev
4. After installation, test
Ln-S/usr/local/Erlang/bin/ERL/usr/local/bin/ERL
Erl
5. Install man
Otp_doc_man_rxxx.tar.gz
Tar-zxvf otp_doc_man_rxxx.tar.gz
MV Man/usr/local/Erlang
-- Install Emacs
1. Find the corresponding Emacs version
APTITUDE search Emacs
2. Install Emacs
Apt-Get install emacsxxx-NOx
-- Configure the Emacs configuration file
(Add-to-list 'Load-path "/usr/local/Erlang/lib/tools-xxxx/Emacs ")
(Require 'erlang-start)
(Add-to-list 'auto-mode-alist' ("\. ERL? $ ". Erlang-mode ))
(Add-to-list 'auto-mode-alist' ("\. HRL? $ ". Erlang-mode ))
(Setq Erlang-root-Dir "/usr/local/Erlang ")
(Add-to-list 'exec-path "/usr/local/Erlang/bin ")
(Setq Erlang-man-root-Dir "/usr/local/Erlang/Man") // decompress the file