Phantomjs Linux下启动报错

环境为Unbuntu 22.04,安装完phantomjs后验证安装时报如下错误:

cj@vm-ubuntu:/usr/local/bin$ phantomjs --version
Auto configuration failed
140372441778112: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
140372441778112:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140372441778112:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=providers, path=providers
140372441778112:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=providers

解决方法:在环境变量中加入如下值,使phantomjs能够找到指定的文件

export OPENSSL_CONF=/etc/ssl

再次验证后没有问题了

cj@vm-ubuntu:/usr/local/bin$ phantomjs --version
2.1.1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值