1.安装ImageMagick
rpm -qa|grep libtiff 检查是否已经安装
rpm -qa|grep libpng 检查是否已经安装
rpm -qa|grep libjpeg 检查是否已经安装
rpm -qa|grep freetype 检查是否已经安装
rpm -qa | grep ImageMagick 检查是否已经安装
rpm -qa | grep Jmagick 检查是否已经安装
卸载老版本(对应系统安装的版本号)
rpm -e -allmatches -nodeps ImageMagick-6.2*
rpm -e --allmatches jmagick-6.4.0-3
下载
下载地址: http://downloads.jmagick.org/6.4.0/ImageMagick-6.4.0-0.tar.gz
安装
解压
[root@localhost bluesea]# tar -zxvf ImageMagick-6.4.0-0.tar.gz
进入解压目录
[root@localhost bluesea]# cd ImageMagick-6.4.0
配置安装参数
[root@localhost ImageMagick-6.4.0]# ./configure --prefix=/usr/local/ImageMagick
Option Value ------------------------------------------------------------------------------- Shared libraries --enable-shared=yes yes Static libraries --enable-static=yes yes Module support --with-modules=yes yes GNU ld --with-gnu-ld=yes yes Quantum depth --with-quantum-depth=16 16 High Dynamic Range Imagery --enable-hdri=no no Delegate Configuration: BZLIB --with-bzlib=yes no DJVU --with-djvu=no no DPS --with-dps=yes no FlashPIX --with-fpx=yes no FontConfig --with-fontconfig=yes no FreeType --with-freetype=yes no GhostPCL None pcl6 (unknown) GhostXPS None gxps (unknown) Ghostscript None gs (8.15.2) result_ghostscript_font_dir='none' Ghostscript fonts --with-gs-font-dir=default Ghostscript lib --with-gslib=yes no Graphviz --with-gvc=yes no JBIG --with-jbig=yes no JPEG v1 --with-jpeg=yes no JPEG-2000 --with-jp2=yes no LCMS --with-lcms=yes no LQR --with-lqr=no no Magick++ --with-magick-plus-plus=yes yes OpenEXR --with-openexr=yes no PERL --with-perl=yes /usr/bin/perl PNG --with-png=yes no RSVG --with-rsvg=yes no TIFF --with-tiff=yes no result_windows_font_dir='none' Windows fonts --with-windows-font-dir= WMF --with-wmf=yes no X11 --with-x= yes XML --with-xml=yes no ZLIB --with-zlib=yes no
发现上面 JPEG,PNG 支持都是 no
解决:到系统安装源目录找到如下3个包并安装(过程略)
zlib-devel-1.2.3-3.x86_64.rpm
libpng-devel-1.2.10-7.1.el5_3.2.x86_64.rpm
libjpeg-devel-6b-37.x86_64.rpm
再次输入
[root@localhost ImageMagick-6.4.0]# ./configure --prefix=/usr/local/ImageMagick
Option Value ------------------------------------------------------------------------------- Shared libraries --enable-shared=yes yes Static libraries --enable-static=yes yes Module support --with-modules=yes yes GNU ld --with-gnu-ld=yes yes Quantum depth --with-quantum-depth=16 16 High Dynamic Range Imagery --enable-hdri=no no Delegate Configuration: BZLIB --with-bzlib=yes no DJVU --with-djvu=no no DPS --with-dps=yes no FlashPIX --with-fpx=yes no FontConfig --with-fontconfig=yes no FreeType --with-freetype=yes no GhostPCL None pcl6 (unknown) GhostXPS None gxps (unknown) Ghostscript None gs (8.15.2) result_ghostscript_font_dir='none' Ghostscript fonts --with-gs-font-dir=default Ghostscript lib --with-gslib=yes no Graphviz --with-gvc=yes no JBIG --with-jbig=yes no JPEG v1 --with-jpeg=yes no (failed tests) JPEG-2000 --with-jp2=yes no LCMS --with-lcms=yes no LQR --with-lqr=no no Magick++ --with-magick-plus-plus=yes yes OpenEXR --with-openexr=yes no PERL --with-perl=yes /usr/bin/perl PNG --with-png=yes no (failed tests) RSVG --with-rsvg=yes no TIFF --with-tiff=yes no result_windows_font_dir='none' Windows fonts --with-windows-font-dir= WMF --with-wmf=yes no X11 --with-x= yes XML --with-xml=yes no ZLIB --with-zlib=yes no
这次提示的是no (failed tests),查看config.log 里面 /usr/bin/ld: cannot find -lX11 显示这样一个错误
解决:到安装源 里面找到如下5个包(安装略)
libX11-devel-1.0.3-11.el5.x86_64.rpm
libXau-devel-1.0.1-3.1.x86_64.rpm
libXdmcp-devel-1.0.1-2.1.x86_64.rpm
mesa-libGL-devel-6.5.1-7.7.el5.x86_64 .rpm
xorg-x11-proto-devel-7.1-13.el5.x86_64.rpm
注意:安装时 这几个包相互依赖 可以加上 --nodpes 参数 安装
再次输入
[root@localhost ImageMagick-6.4.0]# ./configure --prefix=/usr/local/ImageMagick
发现是yes 就可以继续了
编译
[root@localhost ImageMagick-6.4.0]# make
安装
[root@localhost ImageMagick-6.4.0]# make install
配置
[root@localhost ImageMagick-6.4.0]# vi /etc/profile
修改 export PATH=$JAVA_HOME/bin:/usr/local/ImageMagick/bin:$PATH
使之立即生效
[root@localhost ImageMagick-6.4.0]# source /etc/profile
[root@localhost ImageMagick-6.4.0]# vi /etc/ld.so.conf
[root@localhost ImageMagick-6.4.0]# ldconfig
测试
convert -version 显示版本号
上传一张图片1.jpg
执行 convert 1.jpg -gravity center -extent 200x200 2.jpg 看是否生成2.jpg
JMagick安装
下载地址:http://downloads.jmagick.org/6.4.0/jmagick-6.4.0-src.tar.gz
安装
解压
[root@localhost bluesea]# tar -zxvf jmagick-6.4.0-src.tar.gz
安装配置
[root@localhost bluesea]# cd 6.4.0/ [root@localhost 6.4.0]# ./configure --prefix=/usr/local/jmagick --with-magick-home=/usr/local/ImageMagick --with-java-home=/usr/java/jdk1.6.0_30/
编译
[root@localhost 6.4.0]# make
安装
[root@localhost 6.4.0]# make install
配置
把libJMagick.so拷贝到 jdk的amd64目录里
[root@localhost 6.4.0]# cp /usr/local/jmagick/lib/libJMagick.so /usr/java/jdk1.6.0_30/jre/lib/amd64/
将jmagick.jar拷贝到jdk的ext目录下
[root@localhost 6.4.0]# cp /usr/local/jmagick/lib/jmagick-6.4.0.jar /usr/java/jdk1.6.0_30/jre/lib/ext/
发表评论
-
(五)mysql安装
2012-01-16 17:16 10171.下载 2.安装 [root@localhost b ... -
(四)tomcat安装并整合apache
2012-01-16 12:29 10771 下载 下载地址:http://labs.renre ... -
(三)apache安装
2012-01-16 11:20 9651.下载 下载地址:http://mirror.bjtu.e ... -
(二)JDK安装
2012-01-13 16:49 10871 下载 下载地址:http://download.orac ... -
(一)CentOS 系统字符集,IP地址修改
2012-01-13 15:43 2768虚拟机安装centOS 5.4 64-bit(过程不说了) ...
相关推荐
#### 六、注意事项 - **路径兼容性**:在不同操作系统中,文件路径的表示方式有所不同。例如,在Windows中使用反斜杠 `\`,而在Linux或MacOS中使用正斜杠 `/`。 - **环境变量**:确保正确设置了ImageMagick的环境...
scratch少儿编程逻辑思维游戏源码-皮博冒险者.zip
少儿编程scratch项目源代码文件案例素材-这是之前下载的测试.zip
scratch少儿编程逻辑思维游戏源码-汽车冲突.zip
scratch少儿编程逻辑思维游戏源码-梦幻岛 3D.zip
scratch少儿编程逻辑思维游戏源码-收集水果.zip
炫酷蓝色响应式投稿说明源码.zip
机器学习算法与应用大作业-基于预处理的小麦品种的分类和聚类源码+数据+使用说明.zip是个人经导师指导并认可通过的高分设计项目,评审分98分。主要针对计算机相关专业的正在做大作业的学生和需要项目实战练习的学习者,可作为课程设计、期末大作业。。内容来源于网络分享,如有侵权请联系我删除。
vs2019_Qt5.12.12编译好的ffmpeg库,因为是c接口,别的版本理论也可以用
scratch少儿编程逻辑思维游戏源码-欧力多.zip
少儿编程scratch项目源代码文件案例素材-越野运动员.zip
GUI开发_CMake_MSVC_CLion_ElaWidgetTools_跨平台界面组件库_简化项目结构_降低上手难度_提供完整编译环境配置_支持Windows11开发_快速集成
scratch少儿编程逻辑思维游戏源码-时间先生.zip
少儿编程scratch项目源代码文件案例素材-爪猫使命召唤.zip
内容管理系统_SpringBootThymeleaf双引擎解析_梦想家CMS开源建站系统_面向政府企业组织快速搭建展示型网站如企业官网技术博客信息门户等解决建站成本高周期长问题
健康监测与运动数据自动化_云函数部署与定时任务管理_乐心健康APP账号绑定与步数同步_通过腾讯云函数和青龙面板实现自动刷步并同步至蚂蚁森林获取每日296g能量的智能脚本系统_适用于
动态雨滴玻璃掉落个人主页源码.rar
scratch少儿编程逻辑思维游戏源码-鸟群算法.zip
scratch少儿编程逻辑思维游戏源码-墨迹.zip
本校园管理系统采用的数据库是Mysql,使用springboot框架开发。在设计过程中,充分保证了系统代码的良好可读性、实用性、易扩展性、通用性、便于后期维护、操作方便以及页面简洁等特点。