bash 加载共享库时出错:libgtk-x11-2.0.so.0:
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38935024/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
error while loading shared libraries: libgtk-x11-2.0.so.0:
提问by John
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 main.js
在我的 Windows 10 设备上运行via bash之后发生的。
Electron was installed as follow:
Electron 安装如下:
npm install electron --save-dev
https://www.npmjs.com/package/electron
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>
采纳答案by mscdex
回答by Tim Alen
For Arch Linux x64 -> 32 bit package:
对于 Arch Linux x64 -> 32 位包:
yaourt -S lib32-libgtkhtml
Note for me :)
给我注意:)