I am trying to get started with electron to build desktop apps, and I ran into the following error while trying to start the application.
error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
this occur after in ran the electron main.js
via bash on my windows 10 device.
Electron was installed as follow:
npm install electron --save-dev
https://www.npmjs.com/package/electron
Any help would be greatly appreciated
UPDATE:
> electron main.js
[8002:0814/084446:FATAL:render_sandbox_host_linux.cc(40)] Check failed: 0 == shutdown(renderer_socket_, SHUT_RD). shutdown: Invalid argument
#0 0x000001e098ce <unknown>
#1 0x000001e1f4db <unknown>
#2 0x000001e1fa9d <unknown>
#3 0x000002892fc2 <unknown>
#4 0x00000265e599 <unknown>
#5 0x000002664b5f <unknown>
#6 0x00000265dc36 <unknown>
#7 0x000001204157 <unknown>
#8 0x000001202c30 <unknown>
#9 0x0000033a9470 main
#10 0x7fe5ec701f45 __libc_start_main
#11 0x000000575039 <unknown>
You need to apt-get install libgtk2.0-0
and install an X server for Windows, such as xming.
For Arch Linux x64 -> 32 bit package:
yaourt -S lib32-libgtkhtml
Note for me :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With