Mono Libgdiplus库
Libgdiplus是一个Mono库,用于对非Windows操作系统提供GDI+兼容的API。libgdiplus是mono中的System.Drawing依赖的一个组件,用于显示web页面基本颜色等。目前最新是libgdiplus-2.10,具体可以 http://www.mono-project.com/Libgdiplus 。
tar -xjvf libgdiplus-2.10.tar.bz2 cd libgdiplus-2.10 ./configure --prefix=/usr/local make make install
./configure –prefix=/usr/,这是源代码安装的第一步,主要的作用是对即将安装的软件进行配置,检查当前的环境是否满足要安装软件的依赖关系。当完成配置出现如下信息时,说明依赖关系全都具备,可以开始安装libgdiplus。
如果出现如下信息:
configure: WARNING: *** TIFF plug-in will not be built (TIFF library not found) *** checking for jpeg_destroy_decompress in -ljpeg... no configure: WARNING: *** JPEG loader will not be built (JPEG library not found) *** checking for DGifOpenFileName in -lgif... no configure: WARNING: *** GIF loader will not be built (giflibrary not found) *** checking for DGifOpenFileName in -lungif... no configure: WARNING: *** GIF loader will not be built (ungiflibrary not found) *** checking for libpng12... no checking for png_read_info in -lpng... no configure: error: *** libpng12 not found. See http://www.libpng.org/pub/png/libpng.html.
说明缺少libtiff、libjpeg、libgif、libpng等库,安装这些库:
yum install libtiff libtiff-devel libjpeg libjpeg-devel giflib giflib-devel libpng libpng-devel libX11 libX11-devel freetype
欢迎大家扫描下面二维码成为我的客户,扶你上云