解决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、重启应用

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

上一篇:动态构建 urlpatterns


下一篇:JS继承