libgdiplus官网地址:https://download.mono-project.com/sources/libgdiplus/
[root@localhost ~]# mkdir -p /usr/local/libgdiplus/sbin
[root@localhost ~]# cd /usr/local/libgdiplus
[root@localhost libgdiplus]# yum install wget -y
[root@localhost libgdiplus]# wget https://download.mono-project.com/sources/libgdiplus/libgdiplus0-6.0.5.tar.gz
[root@localhost libgdiplus]# ls
libgdiplus0-6.0.5.tar.gz libgdiplus-6.1.tar.gz sbin
[root@localhost libgdiplus]# tar -xzvf libgdiplus0-6.0.5.tar.gz
[root@localhost libgdiplus]# ls
libgdiplus0-6.0.5.tar.gz libgdiplus-6.0.5 libgdiplus-6.1.tar.gz sbin
[root@localhost libgdiplus]# cd libgdiplus-6.0.5
[root@localhost libgdiplus-6.0.5]# ls
aclocal.m4 ChangeLog config.guess config.sub configure.ac depcomp install-sh libgdiplus.pc.in LICENSE m4 Makefile.in NEWS src tests winconfig.h.in
AUTHORS compile config.h.in configure COPYING INSTALL libgdiplus0.spec.in libgdiplus.sln ltmain.sh Makefile.am missing README.md test-driver TODO
[root@localhost libgdiplus-6.0.5]# yum install cairo-devel libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel freetype-devel fontconfig libXft-devel autoconf automake libtool glib2-devel -y
[root@localhost libgdiplus-6.0.5]# ./configure --prefix=/usr/local/libgdiplus/sbin
[root@localhost libgdiplus-6.0.5]# make & make install
[root@localhost libgdiplus-6.0.5]# cd ..
[root@localhost libgdiplus]# ls
libgdiplus0-6.0.5.tar.gz libgdiplus-6.0.5 libgdiplus-6.1.tar.gz sbin
[root@localhost libgdiplus]# cd sbin/
[root@localhost sbin]# ls
lib
[root@localhost sbin]# cd lib/
[root@localhost lib]# ls
libgdiplus.a libgdiplus.la libgdiplus.so libgdiplus.so.0 libgdiplus.so.0.0.0 pkgconfig #编译成功