Ubuntu11.10 build an Erlang Environment

Source: Internet
Author: User
If the library is incomplete, various errors will be reported during compilation and installation, so we are standing on the shoulders of giants. First of all, lay a good database: sudoapt-getinstallbuild-essentialsudoapt-getinstalllibncurses5-dev & nb

If the library is incomplete, various errors will be reported during compilation and installation, so we are standing on the shoulders of giants.

First, prepare the database:

  1. Sudo apt-get install build-essential
  2. Sudo apt-get install libncurses5-dev
  3. Sudo apt-get install libssl-dev
  4. Sudo apt-get install m4
  5. Sudo apt-get install unixodbc-dev
  6. Sudo apt-get install freeglut3-dev libwxgtk2.8-dev
  7. Sudo apt-get install strongtproc
  8. Sudo apt-get install fop
  9. Sudo apt-get install tk8.5
After installing the dependency above, go to the official website next source package: http://www.erlang.org/download.html

Decompress the package and compile and install it:

  1. Tar zxvf/home/lqg/download/otp_src_R15B01.tar.gz
  2. Cd/home/lqg/otp_src_R15B01/
  3. ./Configure
  4. Make & make install

There is usually no compilation error here, and there may be jdk environment problems:No Java compiler found
Check the jdk environment.

Finally, enter erl in the terminal

You can perform the erlang shell test:

  1. 1> io: format ("hello wlord ").
  2. Hello wlordok
  3. 2> io: format ("hello wlord ~ N ").
  4. Hello wlord
  5. OK
  6. 3> io: format ("the output is :~ W ~ W ~ N ", [hello, world]).
  7. The output is: hello world
  8. OK
  9. 4> io: format ("the output is :~ W ~ W ~ N ", [hello, world]).
  10. The output is: helloworld
  11. OK
  12. 5> io: format ("the output is :~ W ~ W ~ N ", [hello, world]).
  13. The output is: helloworld
  14. OK

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.