系统相关
首页 > 系统相关> > 解决linux下 使用netcore生成图片报错的问题:The type initializer for 'Gdip' threw an exception

解决linux下 使用netcore生成图片报错的问题:The type initializer for 'Gdip' threw an exception

作者:互联网

1、安装组件
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

2、安装libgdiplus
yum install libgdiplus-devel

3、创建符号连接
ln -s /usr/local/lib/libgdiplus.so /usr/lib64/libgdiplus.so
ln -s /usr/local/lib/libgdiplus.so /usr/libgdiplus.so

4、修改配置文件
vi /etc/ld.so.conf
添加/usr/local/lib

5、重启应用

标签:exception,libgdiplus,develyum,netcore,devel,报错,usr,install,so
来源: https://www.cnblogs.com/makeke/p/14964223.html