![](/img/trans.png)
[英]error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
[英]error while loading shared libraries: libgtk-x11-2.0.so.0:
我試圖開始使用Electron構建桌面應用程序,而嘗試啟動該應用程序時遇到以下錯誤。
error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
這是在Windows 10設備上通過bash運行electron main.js
之后發生的。
電子安裝如下:
npm install electron --save-dev
https://www.npmjs.com/package/electron
任何幫助將不勝感激
更新:
> 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>
您需要apt-get install libgtk2.0-0
並為Windows安裝X服務器,例如xming 。
對於Arch Linux x64-> 32位軟件包:
yaourt -S lib32-libgtkhtml
給我的注意:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.