table of Contents
The .NET CORE project has the function of cropping pictures, and the method of reporting System.Drawing.Common is called. If the libgdiplus package is not relied on in the centos8 system, an error will be reported
My system is CentOS8,
Reference component URL
https://centos.pkgs.org/8/epel-x86_64/libgdiplus-6.0.4-3.el8.x86_64.rpm.html
.net core execution error
Unable to load shared library ‘libgdiplus’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibgdiplus: cannot open shared object file: No such file or directory
Install the libgdiplus package:
Execute commands in the centos8 terminal:
sudo yum install https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/l/libgdiplus-6.0.4-3.el8.x86_64.rpm
[root@localhost tuku.img_linux]# sudo yum install https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/l/libgdiplus-6.0.4-3.el8.x86_64.rpm
上次元数据过期检查:0:38:32 前,执行于 2021年03月15日 星期一 10时51分55秒。
libgdiplus-6.0.4-3.el8.x86_64.rpm 68 kB/s | 191 kB 00:02
依赖关系解决。
=================================================================================================================
软件包 架构 版本 仓库 大小
=================================================================================================================
安装:
libgdiplus x86_64 6.0.4-3.el8 @commandline 191 k
安装依赖关系:
cairo x86_64 1.15.12-3.el8 appstream 721 k
dejavu-fonts-common noarch 2.35-6.el8 baseos 74 k
dejavu-sans-fonts noarch 2.35-6.el8 baseos 1.5 M
fontconfig x86_64 2.13.1-3.el8 baseos 275 k
fontpackages-filesystem noarch 1.44-22.el8 baseos 16 k
giflib x86_64 5.1.4-3.el8 appstream 51 k
jbigkit-libs x86_64 2.1-14.el8 appstream 55 k
libX11 x86_64 1.6.8-3.el8 appstream 611 k
libX11-common noarch 1.6.8-3.el8 appstream 158 k
libXau x86_64 1.0.9-3.el8 appstream 37 k
libXext x86_64 1.3.4-1.el8 appstream 45 k
libXrender x86_64 0.9.10-7.el8 appstream 33 k
libexif x86_64 0.6.22-5.el8_3 appstream 431 k
libjpeg-turbo x86_64 1.5.3-10.el8 appstream 156 k
libtiff x86_64 4.0.9-18.el8 appstream 188 k
libxcb x86_64 1.13.1-1.el8 appstream 229 k
pixman x86_64 0.38.4-1.el8 appstream 257 k
事务概要
=================================================================================================================
安装 18 软件包
总计:4.9 M
总下载:4.7 M
安装大小:17 M
确定吗?[y/N]: y
下载软件包:
(1/17): jbigkit-libs-2.1-14.el8.x86_64.rpm 662 kB/s | 55 kB 00:00
(2/17): giflib-5.1.4-3.el8.x86_64.rpm 503 kB/s | 51 kB 00:00
(3/17): cairo-1.15.12-3.el8.x86_64.rpm 6.4 MB/s | 721 kB 00:00
(4/17): libX11-1.6.8-3.el8.x86_64.rpm 18 MB/s | 611 kB 00:00
(5/17): libXau-1.0.9-3.el8.x86_64.rpm 5.2 MB/s | 37 kB 00:00
(6/17): libX11-common-1.6.8-3.el8.noarch.rpm 9.2 MB/s | 158 kB 00:00
(7/17): libXrender-0.9.10-7.el8.x86_64.rpm 8.9 MB/s | 33 kB 00:00
(8/17): libXext-1.3.4-1.el8.x86_64.rpm 8.7 MB/s | 45 kB 00:00
(9/17): libexif-0.6.22-5.el8_3.x86_64.rpm 29 MB/s | 431 kB 00:00
(10/17): libtiff-4.0.9-18.el8.x86_64.rpm 16 MB/s | 188 kB 00:00
(11/17): libxcb-1.13.1-1.el8.x86_64.rpm 30 MB/s | 229 kB 00:00
(12/17): libjpeg-turbo-1.5.3-10.el8.x86_64.rpm 4.0 MB/s | 156 kB 00:00
(13/17): pixman-0.38.4-1.el8.x86_64.rpm 3.2 MB/s | 257 kB 00:00
(14/17): dejavu-sans-fonts-2.35-6.el8.noarch.rpm 4.4 MB/s | 1.5 MB 00:00
(15/17): fontconfig-2.13.1-3.el8.x86_64.rpm 962 kB/s | 275 kB 00:00
(16/17): fontpackages-filesystem-1.44-22.el8.noarch.rpm 410 kB/s | 16 kB 00:00
(17/17): dejavu-fonts-common-2.35-6.el8.noarch.rpm 11 kB/s | 74 kB 00:06
-----------------------------------------------------------------------------------------------------------------
总计 552 kB/s | 4.7 MB 00:08
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
安装 : fontpackages-filesystem-1.44-22.el8.noarch 1/18
安装 : libjpeg-turbo-1.5.3-10.el8.x86_64 2/18
安装 : dejavu-fonts-common-2.35-6.el8.noarch 3/18
安装 : dejavu-sans-fonts-2.35-6.el8.noarch 4/18
安装 : fontconfig-2.13.1-3.el8.x86_64 5/18
运行脚本: fontconfig-2.13.1-3.el8.x86_64 5/18
安装 : pixman-0.38.4-1.el8.x86_64 6/18
安装 : libexif-0.6.22-5.el8_3.x86_64 7/18
安装 : libXau-1.0.9-3.el8.x86_64 8/18
安装 : libxcb-1.13.1-1.el8.x86_64 9/18
安装 : libX11-common-1.6.8-3.el8.noarch 10/18
安装 : libX11-1.6.8-3.el8.x86_64 11/18
安装 : libXext-1.3.4-1.el8.x86_64 12/18
安装 : libXrender-0.9.10-7.el8.x86_64 13/18
安装 : cairo-1.15.12-3.el8.x86_64 14/18
安装 : jbigkit-libs-2.1-14.el8.x86_64 15/18
运行脚本: jbigkit-libs-2.1-14.el8.x86_64 15/18
安装 : libtiff-4.0.9-18.el8.x86_64 16/18
安装 : giflib-5.1.4-3.el8.x86_64 17/18
安装 : libgdiplus-6.0.4-3.el8.x86_64 18/18
运行脚本: libgdiplus-6.0.4-3.el8.x86_64 18/18
运行脚本: fontconfig-2.13.1-3.el8.x86_64 18/18
验证 : cairo-1.15.12-3.el8.x86_64 1/18
验证 : giflib-5.1.4-3.el8.x86_64 2/18
验证 : jbigkit-libs-2.1-14.el8.x86_64 3/18
验证 : libX11-1.6.8-3.el8.x86_64 4/18
验证 : libX11-common-1.6.8-3.el8.noarch 5/18
验证 : libXau-1.0.9-3.el8.x86_64 6/18
验证 : libXext-1.3.4-1.el8.x86_64 7/18
验证 : libXrender-0.9.10-7.el8.x86_64 8/18
验证 : libexif-0.6.22-5.el8_3.x86_64 9/18
验证 : libjpeg-turbo-1.5.3-10.el8.x86_64 10/18
验证 : libtiff-4.0.9-18.el8.x86_64 11/18
验证 : libxcb-1.13.1-1.el8.x86_64 12/18
验证 : pixman-0.38.4-1.el8.x86_64 13/18
验证 : dejavu-fonts-common-2.35-6.el8.noarch 14/18
验证 : dejavu-sans-fonts-2.35-6.el8.noarch 15/18
验证 : fontconfig-2.13.1-3.el8.x86_64 16/18
验证 : fontpackages-filesystem-1.44-22.el8.noarch 17/18
验证 : libgdiplus-6.0.4-3.el8.x86_64 18/18
已安装:
cairo-1.15.12-3.el8.x86_64 dejavu-fonts-common-2.35-6.el8.noarch dejavu-sans-fonts-2.35-6.el8.noarch
fontconfig-2.13.1-3.el8.x86_64 fontpackages-filesystem-1.44-22.el8.noarch giflib-5.1.4-3.el8.x86_64
jbigkit-libs-2.1-14.el8.x86_64 libX11-1.6.8-3.el8.x86_64 libX11-common-1.6.8-3.el8.noarch
libXau-1.0.9-3.el8.x86_64 libXext-1.3.4-1.el8.x86_64 libXrender-0.9.10-7.el8.x86_64
libexif-0.6.22-5.el8_3.x86_64 libgdiplus-6.0.4-3.el8.x86_64 libjpeg-turbo-1.5.3-10.el8.x86_64
libtiff-4.0.9-18.el8.x86_64 libxcb-1.13.1-1.el8.x86_64 pixman-0.38.4-1.el8.x86_64
完毕!
[root@localhost tuku.img_linux]# rpm -Uvh epel-release*rpm
错误:无法通过通配符查找文件:epel-release*rpm
[root@localhost tuku.img_linux]# dnf install libgdiplus
上次元数据过期检查:0:39:23 前,执行于 2021年03月15日 星期一 10时51分55秒。
软件包 libgdiplus-6.0.4-3.el8.x86_64 已安装。
依赖关系解决。
无需任何处理。
完毕!
Restart the website after successful installation:
First enter the website deployment directory
cd /wzfgs_img_storage/tuku.img_linux
Launch website
dotnet WebNetCore5_Img_Storage.dll --urls http://*:5000