Install Erlang5.8.3 in Ubuntu10.10 source code

Source: Internet
Author: User
1. Install JDK. Download JDK: JDK

1. Install JDK

Official website download JDK: http://www.Oracle.com/technetwork/java/javase/downloads/index.html

Sudo sh jdk-6u24-linux-i586.bin

2. Set Environment Variables

Sudo vi/etc/environment

Added:

Export JAVA_HOME =/home/lispking/Java/jdk1.6.0 _ 24

Export JRE_Home = $ JAVA_HOME/jre

Export CLASSPATH = $ CLASSPATH: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib

Sudo vi/etc/profile

Add the following before umask 022:

Export JAVA_HOME =/home/lispking/Java/jdk1.6.0 _ 24

Export JRE_HOME = $ JAVA_HOME/jre

Export CLASSPATH = $ CLASSPATH: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib

Export PATH = $ JAVA_HOME/bin: $ JAVA_HOME/jre/bin: $ PATH: $ HOME/bin

Log out and re-log on or export the above variable in shell, and then you can use java-version to check whether the following information is correct.

Java version "1.6.0 _ 24"

Java (TM) SE Runtime Environment (build 1.6.0 _ 24-b07)

Java HotSpot (TM) Server VM (build 19.1-b02, mixed mode)

3. Download the auxiliary package:
Sudo apt-get install build-essential libncurses5-dev m4 libssl-dev unixodbc-dev libc6 freeglut3-dev libwxgtk2.8-dev sun-java6-jre extends tproc fop
4. Download otp_src_r14b02.tar.gz from www.erlang.organd decompress it. Then, go to the otp_src_R14B02 directory and run the following command:
./Configure & make
Sudo make install
5. Test the installation result of Erlang
Enter erl and press enter to check whether the following information is displayed.
Erlang R14B02 (erts-5.8.3) [source] [smp: 4: 4] [rq: 4] [async-threads: 0] [hipe] [kernel-poll: false]


Eshell V5.8.3 (abort with ^ G)
1>
Finished.

Related Article

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.