环境  CentOS7/CentOS7.1 x64

1、检查yum

2、检查是否安装zlib,下载地址:http://www.zlib.net/

3、安装libpng,下载地址:http://www.libpng.org/pub/png/pngcode.html, 我本地因环境问题安装了1.4和1.5两个版本

4、安装libjpeg,首先安装jasper, 下载地址:http://www.ece.uvic.ca/~mdadams/jasper/, 再安装libjpeg,同时安装了jpegsrc.v6b和jpegsrc.v8d版本

这里遇到问题参考:http://edwardchu.org/articles/wrong-jpeg-library-version.html

在安装GraphicsMagick时还是报错,需要再安装 libjpeg62-62.0.0-15.5.1.x86_64.rpm

5、最后下载GraphicsMagick-1.3.23.tar.gz 进行安装,在make的时候一定要没有错误,才可以make install

7、检查是否支持png, jpg格式的图片,运行gm –version就可以了

相关文章:

  • 2022-01-19
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
猜你喜欢
  • 2021-06-12
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-10-05
相关资源
相似解决方案