Ubuntu 12.04 LTS 64-bit compiling and installation of Erlang R16B02

Source: Internet
Author: User
Tags wxwidgets

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 details: click here
Erlang: click here

Compile and install Erlang R15B on CentOS

Build an Erlang environment in Ubuntu 11.10

Install Erlang through YUM on CentOS 5.7

Erlang --- start parameter learning/Research

Source code compilation and installation of Erlang in CentOS 5.5

Install Erlang 5.8.3 in the source code of Ubuntu 10.10

Install Erlang on CentOS 6.4

Install Erlang R16B in Ubuntu

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.