当试图在Ubuntu22.04上安装Phantomjs时,我得到了以下错误:从2015到2022年,有一些Q&A在这里,我尝试了所有包含的建议。
https://github.com/ariya/phantomjs/issues/10904
https://gist.github.com/julionc/7476620
wkhtmltopdf - libfontconfig.so.1: cannot open shared object file
http://ubuntuhowtoo.blogspot.com/2019/05/linux-nodejs-phantomjs-error-loading.html
Auto configuration failed
139998593603520:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libproviders.so): libproviders.so: cannot open shared object file: No such file or directory
139998593603520:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
139998593603520:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=providers, path=providers
139998593603520:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=providers```
发布于 2022-07-21 09:27:33
我也有同样的问题,并通过在使用export OPENSSL_CONF=/dev/null
之前设置phantomJS来解决这个问题。如果您不可能禁用openssl,那么您将不得不使用旧的OpenSSL版本打包应用程序。
说明:Ubuntu22.04使用新的OpenSSL版本3.0.2,而不是旧的OpenSSL版本1.1.1。这些OpenSSL版本并不完全兼容,所以当PhantomJS尝试自动配置SSL/TLS设置时,您会看到这个错误。
发布于 2022-08-17 19:22:31
正如我所描述的那样,上面的答案是很少的。
步骤:1首先停止节点服务器,然后在基目录中运行此命令。
步骤:2我建议您注释掉文件/etc/ssl/openssl.cnf中提供程序= provider_sectin的行。
步骤:3启动应用程序
https://stackoverflow.com/questions/73004195
复制相似问题