Skip to content
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

Missing shared libraries #486

Open
qbitroot opened this issue May 20, 2021 · 18 comments
Open

Missing shared libraries #486

qbitroot opened this issue May 20, 2021 · 18 comments

Comments

@qbitroot
Copy link

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

> [email protected] 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! [email protected] start: `electron .`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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).

@DrockDaniel
Copy link

I've never used linxsis

@DrockDaniel
Copy link

Sorry I'm pooped out.

@fullpl4nch3
Copy link

fullpl4nch3 commented Jan 24, 2022

im using wsl 2 on windows 11, and im getting the same error. #519 point to this issue. So im kinda stuck in the loop, any ideas?

The error:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: electron .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/fullpl4nch3/.npm/_logs/2022-01-24T12_57_29_222Z-debug.log

steps to reproduce: npm install && npm start

@genru
Copy link

genru commented Feb 25, 2022

@qbitroot @fullpl4nch3 if use wsl, please try

rm -rdf node_modules
npm install --platform=win32

to tell dependenies your are running on a win system. this resolved my problem.

@burt23
Copy link

burt23 commented Mar 3, 2022

Unfortunately the above command from @genru didn't work for me. Trying to run the overmind dev tools via npx and am running into this same error. Any help greatly appreciated, thank you in advance

@tammaroivan
Copy link

Could you try with sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev, that worked for me

@PoweredByEnergyDrinks
Copy link

sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev

Thanks @tammaroivan , you legend!

@giuliohome
Copy link

giuliohome commented Oct 1, 2022

Having this issue today in Selenium IDE and I solved it by installing google-chrome in ubuntu on Windows WSL and using vcxsrv as Windows X Server with export DISPLAY ... in .bashrc ... (of course it also worked for this quick start then)

@anbarasu97
Copy link

Could you try with sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev, that worked for me

This worked!!!

@erickzhao erickzhao added question and removed bug labels Oct 5, 2022
@LuigiImVector
Copy link

Could you try with sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev, that worked for me

I love you

@giuliohome
Copy link

giuliohome commented Oct 15, 2022

Ok, better to unsubscribe this thread

@long9nt
Copy link

long9nt commented Dec 8, 2022

Could you try with sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev, that worked for me

awesome

@danielwust99
Copy link

Could you try with sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev, that worked for me

Thanks, worked for me bro!

@ValsiRod
Copy link

I ran the same command
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev
and got this error:
error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

what else could I try?

@danielwust99
Copy link

I ran the same command sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev and got this error: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

what else could I try?

Try install the apel release packages before run.

@TeqGin
Copy link

TeqGin commented Jan 6, 2024

I ran the same command sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev and got this error: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

what else could I try?

sudo apt-get install libasound2

this works for me

@marcospgp
Copy link

There is this closed issue about documenting runtime (as opposed to build time) dependencies for Electron: electron/electron#26673

@manojborugadda
Copy link

Thank you so much @tammaroivan 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests