Git Product home page Git Product logo

Comments (6)

SergejJurecko avatar SergejJurecko commented on June 12, 2024

What was the exact command you tried to start actordb with?
Was it:
./bin/actordb start

from actordb.

selverob avatar selverob commented on June 12, 2024

Yes

from actordb.

SergejJurecko avatar SergejJurecko commented on June 12, 2024

What happens if you run:

./erts-7.3/bin/erl

Then in the erlang console:
application:ensure_all_started(crypto).
crypto:hmac(sha256,<<1,34,42,54,243,4,35,3,123,5,234,5,0,0,0,1>>,<<"node1actordb">>).

What is the output of those commands?

from actordb.

selverob avatar selverob commented on June 12, 2024

Seems like you found the problem:

=ERROR REPORT==== 22-Apr-2016::15:33:52 ===
Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library: 'dlopen(/Users/selvek/Downloads/actordb-0.10.20/lib/crypto-3.6.3/priv/lib/crypto.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
  Referenced from: /Users/selvek/Downloads/actordb-0.10.20/lib/crypto-3.6.3/priv/lib/crypto.so
  Reason: image not found'"
OpenSSL might not be installed on this system.

=WARNING REPORT==== 22-Apr-2016::15:33:52 ===
The on_load function for module crypto returned {error,
                                                 {load_failed,
                                                  "Failed to load NIF library: 'dlopen(/Users/selvek/Downloads/actordb-0.10.20/lib/crypto-3.6.3/priv/lib/crypto.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib\n  Referenced from: /Users/selvek/Downloads/actordb-0.10.20/lib/crypto-3.6.3/priv/lib/crypto.so\n  Reason: image not found'"}}
** exception error: undefined function crypto:hmac/3

I have Homebrew installed to /opt/homebrew instead of /usr/local so it's probably caused by that (there is a libcrypto.so in /opt/homebrew/opt/openssl/lib). Is there any workaround?

from actordb.

SergejJurecko avatar SergejJurecko commented on June 12, 2024

Run this from the actordb-0.10.20 folder:

install_name_tool -change /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /opt/homebrew/opt/openssl/lib/libcrypto.dylib lib/crypto-3.6.3/priv/lib/crypto.so

from actordb.

selverob avatar selverob commented on June 12, 2024

Everything's working now. Thank you a lot!

from actordb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.