[erlang-questions] bcrypt issue -- missing library?

Wed Mar 28 23:03:03 CEST 2018

Thank you, Bob, for your patience and tolerance.
Jesse Gumm led me to the same solution.I wish I'd understood it much earlier in my adventures with Erlang.
All the best,
-----Original Message-----
From: "Bob Ippolito" <bob@REDACTED>
Sent: Wednesday, March 28, 2018 4:59pm
To: "Lloyd Prentice" <lloyd@REDACTED>
Cc: "Roger Lipscombe" <roger@REDACTED>, "Erlang" <erlang-questions@REDACTED>
Subject: Re: [erlang-questions] bcrypt issue -- missing library?

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.

On Wed, Mar 28, 2018 at 1:34 PM, <[ lloyd@REDACTED ]( mailto:lloyd@REDACTED )> wrote:

Hi Roger,
I've never intentionally compiled the NIF. The only thing I've compiled is my application developed in Erlang Nitrogen.
Some months ago I did provision a new workstation with Erlang R19. Perhaps that's when the discrepancy crept in.
It seems that the problem is above my pay grade--- either in Nitrogen or Erlang.
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.
I'm a tool user, not a tool builder.
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.
Is this an issue of my own ignorance? Or an Erlang issue? Or an issue for software in general?
If my ignorance--- I'm sorry. I do try to fill in the gaps.
As it stands, I still don't know what to do to move forward.
All the best,
-----Original Message-----
From: "Roger Lipscombe" <[ roger@REDACTED ]( mailto:roger@REDACTED )>
Sent: Wednesday, March 28, 2018 3:21pm
To: "Lloyd Prentice" <[ lloyd@REDACTED ]( mailto:lloyd@REDACTED )>
Cc: "Erlang" <[ erlang-questions@REDACTED ]( mailto:erlang-questions@REDACTED )>
Subject: Re: [erlang-questions] bcrypt issue -- missing library?

On 28 March 2018 at 19:38, <[ lloyd@REDACTED ]( mailto:lloyd@REDACTED )> wrote:
> ([ wgd@REDACTED ]( mailto:wgd@REDACTED ))4> application:start(bcrypt).
> =WARNING REPORT==== 28-Mar-2018::14:12:39 ===
> The on_load function for module bcrypt_nif returned {error,
> {bad_lib,
> "Library version (2.11) not compatible (with 2.8)."}}

You've compiled the NIF against a later version of Erlang/OTP than the
one you're attempting to use it with. The version list in erl_nif.h
says that 2.11 is OTP-19, and 2.8 is OTP-18.0.
 erlang-questions mailing list
[ erlang-questions@REDACTED ]( mailto:erlang-questions@REDACTED )
[ http://erlang.org/mailman/listinfo/erlang-questions ]( http://erlang.org/mailman/listinfo/erlang-questions )

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180328/85d7972f/attachment.htm>

More information about the erlang-questions mailing list