Install Erlang and Emacs in Linux

Source: Internet
Author: User

-- 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.