Unable to load DLL 'libdl' when using System.Drawing.Common NuGet package on AWS Lambda

前端 未结 4 1830
死守一世寂寞
死守一世寂寞 2020-12-30 02:28

We have a thumbnail generator lambda function which I\'m trying to update to .NET Core 2.0, but I\'ve encountered the following error when using Microsoft\'s System.Dr

4条回答
  •  情深已故
    2020-12-30 03:05

    I had the same issue after uploading my application on Ubuntu 18 server running dotnet core 2.1.500 version. I resolved this issue with this solution https://github.com/dotnet/dotnet-docker/issues/618 using MichaelSimons suggestions.

    I ran

    #sudo apt-get update
    #sudo apt-get install -y --allow-unauthenticated \
            libc6-dev \
            libgdiplus \
            libx11-dev \ 
    #sudo rm -rf /var/lib/apt/lists/*
    

    This resolved the issues.

提交回复
热议问题