R16+ and CentOS 6.4

Because of disabled cipher suite, currently it’s not possible to compile Erlang R16 under CentOS 6.4 with up-to-date OpenSSL (1.0.1e-16.el6_5.7). The solution can already be found on erlang-questions but I thought it might be useful to store it somewhere else too. 🙂

The symptom of a problem appears when you try to do anything with crypto module:

Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library: 'crypto.so: undefined symbol: 
EC_GROUP_new_curve_GF2m'"

To solve it, recompiling OTP is necessary with new environment variable set during configuration phase:

CFLAGS="-DOPENSSL_NO_EC=1 -O2 -g" ./configure

Worked for me with R16B03-1. 🙂 I don’t know if the problem still occurs with R17.

Edit: I forgot that setting CFLAGS overrides default -O2 -g used for OTP compilation. Fixed above. 😉

Advertisements
This entry was posted in Development, Erlang and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s