yum install autoconf automake libtoolyum install freetype-devel fontconfig libXft-develyum install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-develyum install glib2-devel cairo-develgit clone https://github.com/mono/libgdipluscd libgdiplus./autogen.shmakemake installcd /usr/lib64/ln -s /usr/local/lib/libgdiplus.so gdiplus.dll
错误一
type init 错误。提示找不到libgdiplus组件
Make solution 1:
ln -s /usr/local/lib/libgdiplus.so /usr/lib64/libgdiplus.soln -s /usr/local/lib/libgdiplus.so /usr/libgdiplus.so
Make solution 2:
vi /etc/ld.so.conf##将 /usr/local/lib 加入ldconfig #配置生效。
错误二
生成出来的图片没有任何文字 DrawString not dislpay in image
复制 windowns fronts to /usr/share/fonts/chinese/TrueType/