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.