使用kerl在centos中安装erlang时出现加密错误

时间:2016-04-01 18:48:18

标签: linux centos erlang otp kerl

我一直在尝试通过kerl安装erlang16。我收到以下错误:

 Uncaught error in rebar_core: {'EXIT',
 {undef,
 [{crypto,start,[],[]},

这是很多人以前遇到过的问题,但这些解决方案都不适合我。

我按照这样做了: Unable to install erlang on cent os但失败了

如果我这样做,加密:start(),它不会让我回复。有人可以帮忙吗感谢

错误讯息:

  1> crypto:start().
  ** exception error: undefined function crypto:start/0
  2> 
  =ERROR REPORT==== 2-Apr-2016::07:28:13 ===
  Unable to load crypto library. Failed with error:
  "load_failed, Failed to load NIF library: 
 '/usr/local/lib/erlang/lib/crypto-       3.0/priv/lib/crypto.so: undefined  symbol: EC_GROUP_new_curve_GF2m'"
  OpenSSL might not be installed on this system.

  =ERROR REPORT==== 2-Apr-2016::07:28:13 ===
  The on_load function for module crypto returned {error,
                                             {load_failed,
                                              "Failed to load NIF library:  '/usr/local/lib/erlang/lib/crypto-3.0/priv/lib/crypto.so: undefined symbol: EC_GROUP_new_curve_GF2m'"}}

这样做很好:

 Eshell V5.10.2  (abort with ^G)
 1> application:start(crypto).
 ok

1 个答案:

答案 0 :(得分:1)

你的Erlang是在没有OpenSSL的情况下构建的。从源代码构建Erlang时,尚未安装或启用OpenSSL。构建crypto应用程序需要OpenSSL。请参阅Erlang installation guide

检查crypto是否已构建的最简单方法就是尝试启动crypto

1> application:start(crypto).
ok

您可以尝试从Erlang Solutions下载预编译版本吗?否则,您需要找出kerl未获取OpenSSL的原因(如果已安装)。也许尝试验证configure或编译日志。

相关问题