Centos 7 Asp.net core 使用QRCoder 报“Unable to load DLL 'gdiplus'"

环境:html

 Centos7git

 .Net core 2.0github

 

问题:centos

使用QRCoder 报“Unable to load DLL 'gdiplus'"centos7

同 https://q.cnblogs.com/q/98966/spa

 

解决:code

yum install libgdiplus-develhtm

 

注意:blog

yum install libgdiplus 后,在centos7 下,程序并不能运行成功仍是报错,查看libgdiplus安装状况ip

rpm -qa |grep libgdiplus

rpm  -ql libgdiplus-2.10-9.el7.x86_64
在/usr/lib64下缺乏libgdiplus.so文件
Centos7 须要经过安装libgdiplus-devel来解决

 

 

 

参考文章:

https://q.cnblogs.com/q/98966/

https://github.com/CoreCompat/System.Drawing/issues/8

If I recall correctly, the  .so  file for  libgdiplus  is named  libgdiplus.so.0  on CentOS (see https://centos.pkgs.org/7/epel-x86_64/libgdiplus-2.10-9.el7.x86_64.rpm.html). CoreCompat.System.Drawing is looking for  libgdiplus.so  so that doesn't work.

On CentOS, you need to install the  libgdiplus-devel  package.
相关文章
相关标签/搜索