wechat_web_devtools icon indicating copy to clipboard operation
wechat_web_devtools copied to clipboard

nwjs依赖缺失汇总

Open cytle opened this issue 6 years ago • 2 comments

这个项目会帮你下载安装nwjs,但不会帮你安装相关依赖,nwjs缺失某些依赖会引发类似如下错误

./nw: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory

通过搜索引擎可以获知缺失的依赖是什么,以及各系统安装方法。此issue目的是汇总这些缺失的依赖和解决方法。

cytle avatar Feb 28 '19 09:02 cytle

找到一个依赖列表,是在CentOS下运行沙盒模式的puppeteer

yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 -y

来自: Does CentOS system can run puppeteer with sandbox anyway?

cytle avatar Feb 28 '19 09:02 cytle

./nw: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

sudo apt install libgconf-2-4

NihilityT avatar Apr 17 '19 01:04 NihilityT