首页 > 其他 > 详细

CentOS 安装libgdi的方法

时间:2019-12-06 20:05:06      阅读:132      评论:0      收藏:0      [点我收藏+]

1. 安装必须的包

yum install glib2-devel cairo-devel libjpeg-turbo-devel-1.2.90-8.el7.x86_64 libtiff-devel-4.0.3-32.el7.x86_64 -y

2. 下载tar包

wget http://download.mono-project.com/sources/libgdiplus/libgdiplus0-6.0.4.tar.gz

3. 其实安装部分包之前会提示错误比如文件头不存在, 处理方法也比较简单

错误提示信息

  CCLD     testimageattributes
  CC       testjpegcodec.o
testjpegcodec.c:24:21: fatal error: jpeglib.h: No such file or directory
 #include <jpeglib.h>
                     ^
compilation terminated.
make[2]: *** [testjpegcodec.o] Error 1
make[2]: Leaving directory `/libgdi/libgdiplus-6.0.4/testsmake[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/libgdi/libgdiplus-6.0.4make: *** [all] Error 2

解决办法:

yum provides */jpeglib.h

效果一般为:

注意选择相应的架构和比较常见的rpm包就可以了. 

[root@CentOS77 libgdi]# yum provides */jpeglib.h
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * epel: mirrors.aliyun.com
 * extras: mirrors.cn99.com
 * updates: mirrors.cn99.com
libjpeg-turbo-devel-1.2.90-8.el7.i686 : Headers for the libjpeg-turbo library
Repo        : base
Matched from:
Filename    : /usr/include/jpeglib.h



libjpeg-turbo-devel-1.2.90-8.el7.x86_64 : Headers for the libjpeg-turbo library
Repo        : base
Matched from:
Filename    : /usr/include/jpeglib.h



mingw32-libjpeg-turbo-1.3.1-4.el7.noarch : MinGW Windows Libjpeg-turbo library
Repo        : epel
Matched from:
Filename    : /usr/i686-w64-mingw32/sys-root/mingw/include/jpeglib.h



mingw64-libjpeg-turbo-1.3.1-4.el7.noarch : MinGW Windows Libjpeg-turbo library
Repo        : epel
Matched from:
Filename    : /usr/x86_64-w64-mingw32/sys-root/mingw/include/jpeglib.h



libjpeg-turbo-devel-1.2.90-8.el7.x86_64 : Headers for the libjpeg-turbo library
Repo        : @base
Matched from:
Filename    : /usr/include/jpeglib.h

 

CentOS 安装libgdi的方法

原文:https://www.cnblogs.com/jinanxiaolaohu/p/11997098.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!