亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

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 關注
  • 963 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號