<div dir="ltr"><div>
Thanks for your reply. I have already installed OpenSSL but when I install Erlang, I find that crypto is missing. And it gives me an error that OpenSSL might not be installed. Can you help me here? <br></div><div><br></div><div>
$ erl<br>Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]<br><br>Eshell V6.0  (abort with ^G)<br>1> crypto:start().<br>** exception error: undefined function crypto:start/0<br>2><br>=ERROR REPORT==== 15-Oct-2020::23:28:36 ===<br>Unable to load crypto library. Failed with error:<br>"load_failed, Failed to load NIF library: '/usr/local/lib/erlang/lib/crypto-3.3/priv/lib/crypto.so: undefined symbol: HMAC_CTX_init'"<br>OpenSSL might not be installed on this system.<br><br>=ERROR REPORT==== 15-Oct-2020::23:28:36 ===<br>The on_load function for module crypto returned {error,<br>                                                 {load_failed,<br>                                                  "Failed to load NIF library: '/usr/local/lib/erlang/lib/crypto-3.3/priv/lib/crypto.so: undefined symbol: HMAC_CTX_init'"}}

</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 16, 2020 at 12:04 AM Floodeenjr, Thomas <<a href="mailto:thomas_floodeenjr@mentor.com" target="_blank">thomas_floodeenjr@mentor.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">Shared means to configure as shared libraries.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif"> Aneeq Abid <<a href="mailto:aneeqabid@gmail.com" target="_blank">aneeqabid@gmail.com</a>>
<br>
<b>Sent:</b> Thursday, October 15, 2020 12:36 PM<br>
<b>To:</b> Floodeenjr, Thomas <<a href="mailto:thomas_floodeenjr@mentor.com" target="_blank">thomas_floodeenjr@mentor.com</a>><br>
<b>Cc:</b> <a href="mailto:openssl-users@openssl.org" target="_blank">openssl-users@openssl.org</a><br>
<b>Subject:</b> Re: OpenSSL Config Error<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Dear Thomas,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I tried different parameters and have found out that the error occurs only when the option "shared" is used in the command. It works fine for all others. Can you please explain to me what is the purpose of the shared parameter? And is it
 okay if I configure openssl without it?<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Oct 5, 2020 at 7:00 PM Floodeenjr, Thomas <<a href="mailto:thomas_floodeenjr@mentor.com" target="_blank">thomas_floodeenjr@mentor.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal" style="margin-bottom:12pt">Try removing the --openssldir=/usr/local/ssl flag. I think it is not needed.<br>
<br>
sudo ./config --prefix=/usr/local/ssl shared zlib<br>
<br>
-Tom<br>
<br>
From: openssl-users <<a href="mailto:openssl-users-bounces@openssl.org" target="_blank">openssl-users-bounces@openssl.org</a>> On Behalf Of Aneeq Abid<br>
Sent: Monday, October 5, 2020 4:07 AM<br>
To: <a href="mailto:openssl-users@openssl.org" target="_blank">openssl-users@openssl.org</a><br>
Subject: OpenSSL Config Error<br>
<br>
Hi,<br>
<br>
I have no familiarization with OpenSSL. I am installing it as a dependency for installing Erlang. I am using this guide:<br>
<br>
<a href="https://www.howtoforge.com/tutorial/how-to-install-openssl-from-source-on-linux/" target="_blank">https://www.howtoforge.com/tutorial/how-to-install-openssl-from-source-on-linux/</a><br>
<br>
Version installing is openssl-1.0.2l<br>
<br>
I am facing the following error on make [3] while configuring OpenSSL. Can someone please guide me through it:<br>
<br>
make[3]: Entering directory '/media/erlang/openssl-1.0.2l'<br>
make[4]: Entering directory '/media/erlang/openssl-1.0.2l'<br>
/usr/bin/ld: libcrypto.a(gost_eng.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC<br>
/usr/bin/ld: final link failed: Bad value<br>
collect2: error: ld returned 1 exit status<br>
Makefile.shared:169: recipe for target 'link_a.gnu' failed<br>
make[4]: *** [link_a.gnu] Error 1<br>
make[4]: Leaving directory '/media/erlang/openssl-1.0.2l'<br>
Makefile:357: recipe for target 'do_linux-shared' failed<br>
make[3]: *** [do_linux-shared] Error 2<br>
make[3]: Leaving directory '/media/erlang/openssl-1.0.2l'<br>
Makefile:310: recipe for target 'libcrypto.so.1.0.0' failed<br>
make[2]: *** [libcrypto.so.1.0.0] Error 2<br>
make[2]: Leaving directory '/media/erlang/openssl-1.0.2l'<br>
Makefile:109: recipe for target 'shared' failed<br>
make[1]: *** [shared] Error 2<br>
make[1]: Leaving directory '/media/erlang/openssl-1.0.2l/crypto'<br>
Makefile:287: recipe for target 'build_crypto' failed<br>
make: *** [build_crypto] Error 1<br>
<br>
<br>
I used the following command to configure:<br>
<br>
sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib<u></u><u></u></p>
</blockquote>
</div>
</div>
</div>

</blockquote></div>