Skip to content

[Ubuntu][Arm64][@nut-tree/libnut-linux] libnut.node: cannot open shared object file: No such file or directory #159

Open
@ua1wcz

Description

@ua1wcz

Version
@nut-tree/libnut-linux - 2.5.1

Short overview
Error when trying to use nutjs on ubuntu arm64.
As I suppose, the library contains a file that does not correspond to the architecture of the operating system (Arm64)

Steps to reproduce error

  1. Install last nutjs version on Linux ubuntu-linux-22-04-desktop 5.15.0-70-generic
  2. Try to use it

Actual result:
Could not load helper NutHelper from module '/home/test/tests/helpers/nut.helper.js':
/home/test/node_modules/@nut-tree/libnut-linux/build/Release/libnut.node: cannot open shared object file: No such file or directory
Error: /home/test/node_modules/@nut-tree/libnut-linux/build/Release/libnut.node: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1280:18)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at bindings (/home/parallels/pvad-tests2/node_modules/bindings/bindings.js:112:48)
at Object. (/home/parallels/pvad-tests2/node_modules/@nut-tree/libnut-linux/index.js:5:33)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1250:10)

Additional content
Check results:
file ./libnut.node

Output:
./libnut.node: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=c840bced4182f27a9739371b11d88e2bd5ef8dd4, not stripped

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