Skip to content

Missing shared libraries #486

Open
Open
@qbitroot

Description

@qbitroot

When I run npm start, it shows the following output:

> electron-quick-start@1.0.0 start /tmp/electron-quick-start
> electron .

/tmp/electron-quick-start/node_modules/electron/dist/electron: error while loading shared libraries: libcups.so.2: cannot open shared object file: No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! electron-quick-start@1.0.0 start: `electron .`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the electron-quick-start@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2021-05-20T16_43_01_585Z-debug.log

As 4th line says, there is no libcups shared library. I tried installing it, but there are new missing shared libraries. I don't use systemd and it may be one of the reasons of bug.

After hours of troubleshooting, I solved it by putting .so libraries from Debian 10 image into the dist directory. You can download them from the attachment (for testing purposes).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions