【问题标题】:PhantomJS launcher fails on latest Pop!_OS, cannot find shared library libproviders.soPhantomJS 启动器在最新的 Pop!_OS 上失败,找不到共享库 libproviders.so
【发布时间】:2022-06-20 01:57:51
【问题描述】:

我们的系统 (Power TAC) 已经在 Linux、Windows 和 MacOS 的多个版本上成功构建了几年。在 Pop!_OS 22.04(Ubuntu 22.04 外观略有不同)下,maven 构建失败并显示消息

[INFO] 03 06 2022 19:42:21.934:INFO [启动器]:启动浏览器 PhantomJS [INFO] 03 06 2022 19:42:22.005:ERROR [phantomjs.launcher]: 自动配置失败 [INFO] 140172241258432: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

OpenSSL 已安装并且可以工作。不知道接下来要尝试什么。欢迎任何想法。

【问题讨论】:

    标签: javascript maven openssl ubuntu-22.04


    【解决方案1】:

    Ubuntu 22.04 使用新的 OpenSSL 版本 3.0.2 而不是旧的 OpenSSL 版本 1.1.1 。这些 OpenSSL 版本不完全向后兼容,所以这就是为什么您在 PhantomJS 尝试自动配置 SSL/TLS 设置时看到此错误的原因。

    如果您的 PhantomJS 应用程序不需要 OpenSSL,您可以在运行应用程序之前通过设置以下环境变量来禁用 SSL:

    export OPENSSL_CONF=/dev/null
    
    # or you can set it when you run the application
    
    OPENSSL_CONF=/dev/null ./yourapp
    

    否则,您可以使用容器化工具(例如 Docker)将较旧的 OpenSSL 版本打包到您的应用程序中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多