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


環境:

 Centos7

 .Net core 2.0

 

問題:

使用QRCoder 報“Unable to load DLL 'gdiplus'"

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

 

解決:

yum install libgdiplus-devel

 

注意:

yum install libgdiplus 后,在centos7 下,程序並不能運行成功還是報錯,查看libgdiplus安裝情況

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.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM