electron / electron/minimal-repro
Missing shared libraries
- Dominant language
- JavaScript
- Stars
- 11.4k
- Forks
- 4.9k
- Avg merge
- 3h 39m
- Merged PRs (30d)
- 6
Description
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](https://github.com/electron/electron-quick-start/files/6517564/libs.zip) (for testing purposes).
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `npm start` in the electron-quick-start app and inspect `node_modules/electron/dist/electron`, where the reported `libcups.so.2` loading error occurs. Compare the missing-library behavior with the attached Debian 10 libraries; done means the app launches without a chain of missing shared-library errors in the affected environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, javascript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100