<div dir="ltr">You should be able to fix this by deleting your build artifacts and recompiling with the same version of Erlang that you plan to run them with. The build tool you're using can probably do this for you (for rebar3 or rebar it'd be the clean command, if it's Makefile based you can probably make clean). The tools haven't changed, but they are clearly not robust to this kind of accident.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 28, 2018 at 1:34 PM, <span dir="ltr"><<a href="mailto:lloyd@writersglen.com" target="_blank">lloyd@writersglen.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="arial" size="2"><p style="margin:0;padding:0;font-family:arial;font-size:10pt">Hi Roger,</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">I've never intentionally compiled the NIF. The only thing I've compiled is my application developed in Erlang Nitrogen.</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">Some months ago I did provision a new workstation with Erlang R19. Perhaps that's when the discrepancy crept in.</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">It seems that the problem is above my pay grade--- either in Nitrogen or Erlang.</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">It's very frustrating trying to build something to serve a worthy cause but to have tools change under my feet without warning. I had a similar problem with the string library.</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">I'm a tool user, not a tool builder.</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">I have utmost respect for Erlang tool builders. They make possible what I'm trying to do. I know much less than they do; have much less experience. So I depend upon them. But problems like this cost me precious time and confidence.</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">Is this an issue of my own ignorance? Or an Erlang issue? Or an issue for software in general?</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">If my ignorance--- I'm sorry. I do try to fill in the gaps.</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">As it stands, I still don't know what to do to move forward.</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">All the best,</p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">LRP</p><span class="">
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt"> </p>
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">-----Original Message-----<br>From: "Roger Lipscombe" <<a href="mailto:roger@differentpla.net" target="_blank">roger@differentpla.net</a>><br>Sent: Wednesday, March 28, 2018 3:21pm<br>To: "Lloyd Prentice" <<a href="mailto:lloyd@writersglen.com" target="_blank">lloyd@writersglen.com</a>><br>Cc: "Erlang" <<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>><br>Subject: Re: [erlang-questions] bcrypt issue -- missing library?<br><br></p>
<div id="m_4598162288609488420SafeStyles1522268494">
<p style="margin:0;padding:0;font-family:arial;font-size:10pt">On 28 March 2018 at 19:38, <<a href="mailto:lloyd@writersglen.com" target="_blank">lloyd@writersglen.com</a>> wrote:<br>> (<a href="mailto:wgd@127.0.0.1" target="_blank">wgd@127.0.0.1</a>)4> application:start(bcrypt).<br>><br>> =WARNING REPORT==== 28-Mar-2018::14:12:39 ===<br>> The on_load function for module bcrypt_nif returned {error,<br>> {bad_lib,<br>> "Library version (2.11) not compatible (with 2.8)."}}<br><br>You've compiled the NIF against a later version of Erlang/OTP than the<br>one you're attempting to use it with. The version list in erl_nif.h<br>says that 2.11 is OTP-19, and 2.8 is OTP-18.0.</p>
</div></span></font><br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>