-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document which system libraries are required on Linux #26673
Comments
It seems like you've solved the problem by installing the missing libraries. Electron requires those libraries to function and will not start on an OS that lacks them. |
Yes, I've figured that much ... |
Ah, thanks, that wasn't clear from the description! I'll update the issue title to reflect that. |
I got this error when I ran I am using WSL Ubuntu. |
@max-programming do you found a solution? |
Sadly no. Now I don't use WSL |
Ah, thanks. I found a relative solution that is: Install the libraries with de Windows bash/CMD, and later can use the WSL run the Yarn or NPM commands, but never run |
yep! That's the only solution possible! Forgot it completely. |
How do you install the libraries with de Windows bash/CMD, I try to install it on powershell, but got failed,"UNC path is not support" |
any updates? |
1 similar comment
any updates? |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
Looking for this info as well, trying to run electron in a node docker container Version in package.json: The list of dependencies that fixed it for me is:
I went through the process of installing one by one and looking for the next error related to a missing dependency. It would really help to include this in documentation, similarly to how build dependencies are listed here: https://www.electronjs.org/docs/latest/development/build-instructions-linux Edit: No more dependency issues but other issues sprung up. The list above seems to not be exhaustive. Will try to go with electron build time dependencies. |
Preflight Checklist
Issue Details
11.0.3
Minimal Raspberry OS - August 20th 2020
Expected Behavior
Electron starts
Actual Behavior
Electron gives an error message:
/usr/local/lib/node_modules/electron/dist/electron: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory.
The folder
electron
underdist
does not exist.To Reproduce
It does this every time I run "electron" or "node cli.js"
Additional Information
The solution:
In order to run startx on minimal OS, I've installed the following:
sudo apt-get install xserver-xorg-video-all xserver-xorg-input-all xserver-xorg-core xinit x11-xserver-utils
This was not enough to run electron, though.
To solve all the problems with shared libraries, I've run the following:
sudo apt install libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0
The text was updated successfully, but these errors were encountered: