簡體   English   中英

在centos中使用kerl安裝erlang時出現加密錯誤

[英]crypto error when installing erlang with kerl in centos

我一直在嘗試通過 kerl 安裝 erlang16。 我收到以下錯誤:

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

這是很多人以前遇到的一個問題,但這些解決方案都不適合我。

我是按照這個做的: Unable to install erlang on cent os but failed

如果我這樣做,crypto: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

你的 Erlang 是在沒有 OpenSSL 的情況下構建的。 從源代碼構建 Erlang 時,未安裝或啟用 OpenSSL。 構建crypto應用程序需要 OpenSSL。 請參閱Erlang 安裝指南

檢查crypto是否已構建的最簡單方法很簡單,就像您所做的那樣,嘗試啟動crypto

1> application:start(crypto).
ok

您可以嘗試從Erlang Solutions下載預編譯版本嗎? 否則,您將需要找出為什么kerl沒有選擇 OpenSSL(如果已安裝)。 也許嘗試驗證configure或編譯日志。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM