anothersmith / node-duckdb

DuckDB NodeJS bindings
MIT License
48 stars 12 forks source link

Library not loaded libcrypto.1.1.dylib #127

Closed pewh closed 2 years ago

pewh commented 3 years ago

Hello, I have issue when running app with node-duckdb v0.0.78 installed (running on Mac OS)

Error: dlopen(/Users/user/project/node_modules/node-duckdb/build/Release/node-duckdb-addon.node, 1): Library not loaded: /opt/local/lib/libcrypto.1.1.dylib
  Referenced from: /Users/user/project/node_modules/node-duckdb/build/Release/node-duckdb-addon.node
  Reason: image not found
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (/Users/user/project/node_modules/node-duckdb/src/addon-bindings/connection-binding.ts:12:24)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
rprovodenko commented 2 years ago

Hey You need to have openssl installed, something like this:

brew install openssl
export OPENSSL_ROOT_DIR=/usr/local/opt/openssl
pewh commented 2 years ago

Hi @rprovodenko , thank you for the answer. Unfortunately I'm not working using this project recently so cannot test it right now. Will reopen this again if the solution still not work. Thank you.