[Erlang 0004] Centos source code Compilation installation Erlang

Source: Internet
Author: User
Tags install openssl

Original address: http://www.cnblogs.com/me-sa/archive/2011/07/09/erlang0004.html

Since the final deployment of the production environment is CentOS, I need to install Erlang b13r04 in CentOS, the first time to do this is a lot of trouble, mainly on the Erlang relies on the library is not familiar with, always compile but; here's a look at the details of the installation process:

which libraries does Erlang depend on?

    • A fully working GCC Compiler environment
    • ncurses Development Libraries
    • OpenSSL Development libraries (must be installed if using MySQL)

After installing these libraries, you must re-execute the Configure command, after which you will be prompted to configure which dependent libraries are not installed, and you can discard the installation of some libraries according to your needs, and the above can be done using the following command:

> sudo yum-y install make gcc gcc-c++ kernel-devel M4 ncurses-devel Openssl-devel
> wget http://www.erlang.org/download/otp_src_R13B04.tar.gz
> Tar xfvz otp_src_R13B04.tar.gz
> CD otp_src_r13b04/
>./configure--with-ssl
> sudo make install

There will be a lot of options when you/configure. Among the more commonly used are:


--ENABLE-SMP-SUPPORT-SMP Support (enabled by default if a usable POSIX thread library or native Windows threads is found )
--enable-kernel-poll-kernel poll Support (enabled by default if possible)
--enable-hipe-hipe Support (enabled by default on supported PLATF

Note that if you encounter the following error:

{error,
{load_failed,
"Failed to load NIF library: '/usr/local/lib/erlang/lib/crypto-2.0/priv/lib/crypto.so:undefined symbol:enif_make_new _binary ' "}}

Then there are probably two reasons:

    • No OpenSSL installed
    • You have installed multiple versions of erlang,r14a and r13b04 conflicts caused by deleting Erlang related folders and reinstalling them

The Crypto class library may torment you multiple times if you encounter the following error in the Windows environment:

Application:crypto
Exited: {shutdown,{crypto_app,start,[normal,[]}}

That's basically because there is no reason to install OpenSSL, to download a Win32openssl installation can be resolved, the installation process by default all the way next.

It is also necessary to note that in a CentOS environment, it is recommended that you plan the server not to install in the root directory, or you will encounter errors when you make.

[Erlang 0004] Centos source code Compilation installation Erlang

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.