[转].net Core 在 CentOS7下,报The type initializer for 'Gdip' threw an exception.异常

时间:2021-01-08 16:54:42   收藏:0   阅读:43

运行含图片处理时发生异常:

The type initializer for ‘Gdip‘ threw an exception.

解决办法如下

一、安装一下包:

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
git clone https://github.com/mono/libgdiplus
cd libgdiplus
./autogen.sh
make
make install

二、创建符号链接:

ln -s /usr/local/lib/libgdiplus.so /usr/lib64/libgdiplus.so
ln -s /usr/local/lib/libgdiplus.so /usr/libgdiplus.so

三、更新一下库:

updatedb

 

原文:https://www.cnblogs.com/aaronwus/p/14251322.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!