1.yum install libgdiplus --应该是先更新yum
2.如果报错安装
yum install epel-release
后再
yum install libgdiplus
3.libgdiplus的几个依赖
yum -y install autoconf automake libtool
yum -y install freetype-devel fontconfig libXft-devel
yum -y install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel
yum -y install glib2-devel cairo-devel
yum -y install mlocate
ln -s /usr/lib64/libgdiplus.so /usr/lib64/gdiplus.dll
或者
cd /usr/lib && ln -s libgdiplus.so gdiplus.dll
4.如果还有错误
yum install libgdiplus-devel
5.如果还有错误
vim dx.h5.api.runtimeconfig.json
[appmanager@localhost api]$ cat dx.h5.api.runtimeconfig.json { "runtimeOptions": { "tfm": "net6.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "6.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "6.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Drawing.EnableUnixSupport": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } }