Skip to content

sodium-native issues #5

Open
Open
@staltz

Description

@staltz

I'm quite close to getting sodium-native (libsodium) working on nodejs-mobile, see https://github.com/staltz/sodium-native-nodejs-mobile but I'm hitting a runtime error:

Error: dlopen failed: library "libsodium.so" not found
at Object.Module._extensions..node (internal/modules/cjs/loader.js:717:18)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at /data/data/se.manyver/files/nodejs-project/index.js:16:29
at bindings (/data/data/se.manyver/files/nodejs-project/index.js:69758:44)
at Object.84wOzamum2jP+/5fIqg6RNZF+/nib1rh845LX3EpSg8= (/data/data/se.manyver/files/nodejs-project/index.js:19951:33)

I have tried to put libsodium.so in node_modules/sodium-native-nodejs-mobile/build/Release but that has had no effect (with or without libsodium.so in that directory, I get the same runtime error).

I'm running out of ideas, it could either be that libsodium.so should have been included inside build/Release/sodium.node somehow, or it could be that I'm putting this file in the wrong directory. Any suggestions are welcome...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions