【算法工程】强化推理模型局限性之解决linux下Aspose.slides提示No usable version of libssl found

1. 背景

构建ubuntu镜像,然后使用Aspose.slides解析PPTX文档,发现一直提示“No usable version of libssl found”。

2. 尝试

使用deepseek R1、kimi1.5、chatgpt o3,并且都带上联网能力,居然还是没有一个能够真正解决,最后还是通过google找到了有效的处理方法。虽然大模型的总结分析能力已经很强,但搜索到可靠的知识依然还是有所欠缺。

3.最终解决方案

方案论述:Aspose.Slides依赖OpenSSL 1.x 版本

Our developers have investigated the case. If OpenSSL version 3 is installed on the target workstation, then you have two alternatives:
A) Install one of the versions of OpenSSL required by .NET Core 3.1;
B) Wait for .NET 6 to become a .NET runtime hosted in a Python session on all target platforms (estimated in Cs2Python versions 24.04–24.05).

Unfortunately, the default version of OpenSSL on Debian 12 is 3 while .NET Core 3.1 requires OpenSSL 1.x. On this page 36, you can find how to install OpenSSL 1.x on Debian 12. To install the library into the system folder, you should have root access.

Also, you should add the ‘libgdiplus’ package to the ‘apt-get install’ command in the Dockerfile.

After these two steps, we could run the code without any errors.

dockerfile处理方法:

# 安装系统依赖
RUN apt-get update && \
    apt-get install -y \
        libreoffice \
        pkg-config \
        libicu-dev \
        libgdiplus \
        wget && \
    echo "deb http://security.ubuntu.com/ubuntu focal-security main" > /etc/apt/sources.list.d/focal-security.list && \
    apt-get update && \
    apt-get install -y libssl1.1

4. 参考材料

【1】Aspose.Slides for .NET - No Usable Version of Libssl Found with Linux Server

【2】如何在ubuntu22.04版本上安装libssl1.1?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

源泉的小广场

感谢大佬的支持和鼓励!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值