Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error while loading shared libraries: libgtk-x11-2.0.so.0:

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>
like image 635
code_legend Avatar asked Aug 13 '16 16:08

code_legend


2 Answers

You need to apt-get install libgtk2.0-0 and install an X server for Windows, such as xming.

like image 69
mscdex Avatar answered Oct 24 '22 02:10

mscdex


For Arch Linux x64 -> 32 bit package:

yaourt -S lib32-libgtkhtml

Note for me :)

like image 22
Tim Alen Avatar answered Oct 24 '22 04:10

Tim Alen