Erlang is missing crypto

Dominic Morneau dmorneau@REDACTED
Fri Oct 16 17:01:29 CEST 2020


Hi Aneeq,

That’s a very old version of Erlang. How did you install it? Could you
update it or reinstall it via the package manager? It sounds like it was
built on a system that doesn’t quite match yours.

Dominic

2020年10月16日(金) 20:33 Mikael Pettersson <mikpelinux@REDACTED>:

> On Fri, Oct 16, 2020 at 9:54 AM Aneeq Abid <aneeqabid@REDACTED> wrote:
> >
> > Dear Mikael Pettersson,
> >
> > I am a rookie with no experience with Erlang at all. Can you please
> guide me how I can check that? And how I can setup the library/path?
>
> That's not specific for Erlang.  You need someone familiar with
> generic Unix/Linux system-level stuff and the configuration of your
> server to help you.  Google "ldd LD_LIBRARY_PATH".
>
> Off-hand it appears openssl was installed in a non-standard location.
> Don't do that unless you use LD_LIBRARY_PATH (or static linking, but
> that's frowned upon).  On any reasonably modern Linux distribution you
> should just use its default openssl (+ development libraries, they are
> usually separate and many forget to install them).
>
> >
> > On Fri, 16 Oct 2020, 12:39 pm Mikael Pettersson, <mikpelinux@REDACTED>
> wrote:
> >>
> >> On Fri, Oct 16, 2020 at 8:35 AM Aneeq Abid <aneeqabid@REDACTED> wrote:
> >> >
> >> > Hi,
> >> >
> >> > I am facing the following error. OpenSSL is installed on the server.
> Can someone please provide any feedback why crypto is missing?
> >> >
> >> > $ erl
> >> > Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:4:4]
> [async-threads:10] [hipe] [kernel-poll:false]
> >> >
> >> > Eshell V6.0  (abort with ^G)
> >> > 1> crypto:start().
> >> > ** exception error: undefined function crypto:start/0
> >> > 2>
> >> > =ERROR REPORT==== 15-Oct-2020::23:28:36 ===
> >> > Unable to load crypto library. Failed with error:
> >> > "load_failed, Failed to load NIF library:
> '/usr/local/lib/erlang/lib/crypto-3.3/priv/lib/crypto.so: undefined symbol:
> HMAC_CTX_init'"
> >> > OpenSSL might not be installed on this system.
> >>
> >> Does "ldd /usr/local/lib/erlang/lib/crypto-3.3/priv/lib/crypto.so" in
> >> the Unix shell find openssl.so?  If not, then that's your problem,
> >> and you may need to set up LD_LIBRARY_PATH.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20201017/9660e9ce/attachment.htm>


More information about the erlang-questions mailing list