为了账号安全,请及时绑定邮箱和手机立即绑定

asp.net core 2.1 容器中使用 System.Drawing.Common 的问题

asp.net core 2.1 容器中使用 System.Drawing.Common 的问题

蝴蝶刀刀 2018-08-14 10:09:46
之前在 Ubuntu 16.04 上遇到过使用 System.Drawing.Common 的问题(博问链接),而这次是在 docker 容器中遇到了,报错信息与之前不一样,这次的错误是:Unable to load shared library 'libdl' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibdl: cannot open shared object file: No such file or directory    at Interop.Libdl.dlopen(String fileName, Int32 flag)    at System.Drawing.SafeNativeMethods.Gdip.LoadNativeLibrary()    at System.Drawing.SafeNativeMethods.Gdip..cctor()容器镜像用的是 microsoft/dotnet:2.1-aspnetcore-runtime ,容器中已经安装了 libgdiplusRUN apt-get update RUN apt-get install -y libgdiplus RUN cd /usr/lib && ln -s libgdiplus.so gdiplus.dll请问如何解决?
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 914 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信