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