Compile and install ErlangR16B02 in ubuntu12.04lts64bit. 1. Download The ErlangR16B02 source code package ghost
Compile and install Erlang R16B02 in Ubuntu 12.04 LTS 64-bit.
1. Download the Erlang R16B02 source code package
Http://www.erlang.org/download/otp_src_R16B02.tar.gz
2. Because java is needed in the process of compiling Erlang, so install JDK and configure the corresponding environment variables first, use the jdk-6u43-linux-x64.bin
Export JAVA_HOME =/usr/local/jdk1.6.0 _ 43
Export PATH = $ PATH: $ JAVA_HOME/bin:
Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
3. Install the Erlang dependency package
Apt-get install g ++ build-essential libncurses5-dev libgl1-mesa-dev libglu1-mesa-dev
4. After unpacking, run the following command. The -- enable-smp-support option is used to enable multi-processor support, and the -- enable-kernel-poll option is used to enable epoll support.
./Configure -- prefix =/usr/local/erlang -- enable-smp-support -- enable-threads -- enable-kernel-poll -- enable-hipe
The configuration ends with the following results:
**************************************** *****************************
* ******************** Applications disabled **************** ******
**************************************** *****************************
Crypto: No usable OpenSSL found
Odbc: ODBC library-link check failed
Ssh: No usable OpenSSL found
Ssl: No usable OpenSSL found
**************************************** *****************************
**************************************** *****************************
* ******************** Applications information **************** ***
**************************************** *****************************
Wx: wxWidgets not found, wx will NOT be usable
Where,
Crypto: No usable OpenSSL found
Ssh: No usable OpenSSL found
Ssl: No usable OpenSSL found
You can solve this problem through: apt-get install libssl-dev.
Odbc: ODBC library-link check failed
You can solve this problem through: apt-get install unixodbc-dev.
Wx: wxWidgets not found, wx will NOT be usable
This must be solved by installing the wxWidgets library.
5. Download The wxWidgets source code package
Https://sourceforge.net/projects/wxwindows/files/2.8.12/
6. Configure and compile wxWidgets
Tar jxf wxWidgets-2.8.12.tar.bz2
./Configure -- enable-unicode -- with-opengl
If the GTK library cannot be found during configuration, you can solve the problem through: apt-get install libgtk2.0-dev.
If: configure: error: OpenGL libraries not available appears, use the following method to solve the problem:
Ln-s/usr/lib/x86_64-linux-gnu/libGL. so/usr/lib/libGL. so
Ln-s/usr/lib/x86_64-linux-gnu/libGLU. so/usr/lib/libGLU. so
Make & make install
Erlang needs to use the wxWidget stc, so
Cd wxWidgets-2.8.12/contrib/src/stc
Make & make install
Finally, configure the wxWidgets LIBRARY PATH
Echo/usr/local/lib>/etc/ld. so. conf. d/wx. conf
Ldconfig
7. Re-configure and compile Erlang.
./Configure -- prefix =/usr/local/erlang -- enable-smp-support -- enable-threads -- enable-kernel-poll -- enable-hipe
Make & make install
Erlang: Click here
Erlang: Click here
Reading:
Compile and install the Erlang R15B http://www.linuxidc.com/Linux/2012-03/57663.htm on CentOS
Build an Erlang environment http://www.linuxidc.com/Linux/2012-04/58208.htm in Ubuntu 11.10
Install Erlang process http://www.linuxidc.com/Linux/2012-12/75622.htm through YUM on CentOS 5.7
Erlang --- startup parameter learning/research http://www.linuxidc.com/Linux/2011-07/39157.htm
CentOS 5.5 source code compilation and installation of Erlang http://www.linuxidc.com/Linux/2011-07/39156.htm
Ubuntu 10.10 source code installation Erlang 5.8.3 version http://www.linuxidc.com/Linux/2011-04/34863.htm
Install the Erlang http://www.linuxidc.com/Linux/2013-06/85964.htm on CentOS 6.4
Installation http://www.linuxidc.com/Linux/2013-05/84235.htm of Erlang R16B in Ubuntu
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2