【算法工程】办理linux下Aspose.slides提示No usable version of libssl fo ...

打印 上一主题 下一主题

主题 1031|帖子 1031|积分 3093

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
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处理方法:
  
  1. # 安装系统依赖
  2. RUN apt-get update && \
  3.     apt-get install -y \
  4.         libreoffice \
  5.         pkg-config \
  6.         libicu-dev \
  7.         libgdiplus \
  8.         wget && \
  9.     echo "deb http://security.ubuntu.com/ubuntu focal-security main" > /etc/apt/sources.list.d/focal-security.list && \
  10.     apt-get update && \
  11.     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?

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

道家人

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表