ImageMagick Installation instructions (required for beginners)

Source: Internet
Author: User
Tags imagemagick
    1. TAR-XZVF tiff-3.8.0.tar.gz
    2. CD tiff-3.8.0
    3. ./configure
    4. Make
    5. Make install
Copy Code

After I install, I process the picture on the command line, error: Libtiff.so.3:cannot open Shared object file:no such file or directory This module is also not available, can not be installed.

3, install Jasper Package: Download Address: http://www.ece.uvic.ca/~mdadams/jasper/After installation to process the JPEG2000 format picture (file extension is. jp2. j2c)

    1. Unzip Jasper-1.900.1.zip
    2. CD jasper-1.900.1
    3. Cflags=-fpic./configure
    4. Make Cflags=-fpic
    5. Make Cflags=-fpic Install
Copy Code

4. Install JPEG package download address: http://www.ijg.org/files/jpegsrc.v6b.tar.gz

    1. #安装jpeg
    2. Cd/disk/src
    3. Tar-xzf. /soft/jpegsrc.v6b.tar.gz
    4. CD jpeg-6b/
    5. ./configure
    6. Make && make install
Copy Code

5. Install zlib Download Address http://zlib.net/zlib-1.2.7.tar.gz

    1. Cd/disk/src
    2. Tar-xzf. /soft/zlib-1.2.7.tar.gz
    3. CD CD zlib-1.2.7
    4. ./configure
    5. Make && make install
Copy Code

6. Install PNG download address: http://www.libpng.org/pub/png/pngcode.html

    1. wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.50.tar.gz

    2. Cd/disk/src

    3. Tar-xzf. /soft/libpng-1.2.50.tar.gz
    4. CD libpng-1.2.50
    5. CP SCRIPTS/MAKEFILE.STD Makefile
    6. Make
    7. Make install

Copy Code

7. Installation FreeType Download Address: http://www.freetype.org/http://download.savannah.gnu.org/releases/freetype/freetype-2.4.9.tar.gz

    1. Cd/disk/src
    2. Tar-xzf. /soft/freetype-2.4.9.tar.gz
    3. CD freetype-2.4.9
    4. ./configure
    5. Make
    6. Make install
Copy Code

8, installation ImageMagick

    1. #宣告64位环境

    2. Export cflags= '-fpic '
    3. Tar-xzf. /soft/imagemagick-6.8.0-0.tar.gz
    4. CD imagemagick-6.8.0-0/
    5. ./configure--with-quantum-depth=8--enable-share--enable-static
    6. Make all
    7. Make install

    8. /usr/bin/ld:skipping INCOMPATIBLE/USR/LIB/LIBPTHREAD.A when searching for-lpthread

    9. /usr/bin/ld:cannot Find-lltdl
    10. Collect2:ld returned 1 exit status
    11. Libtool:install:error:relink ' magick/libmagickcore.la ' with the above command before installing it
    12. MAKE[2]: * * [install-libltlibraries] Error 1
    13. MAKE[2]: Leaving directory '/disk/src/imagemagick-6.8.0-0 '

    14. Install:error:relink ' magick/libmagickcore.la ' with the above command before installing it

    15. /usr/bin/ld:cannot Find-lltdl

Copy Code

Workaround: Workaround for Usr/bin/ld:cannot find error two or two binary RPM installation

1, first uninstall after installation installation:

    1. Yum Install ImageMagick Imagemagick-devel
Copy Code

If it is already installed, perform the following uninstall command first, I have installed the 6.2.8 version, so uninstall it first.

    1. [Root@jbxue soft]# Convert--version
    2. Version:imagemagick 6.2.8 05/07/12 Q16 file:/usr/share/imagemagick-6.2.8/doc/index.html
    3. Copyright:copyright (C) 1999-2006 ImageMagick Studio LLC
    4. [Root@jbxue soft]# rpm-qa| grep ImageMagick
    5. Imagemagick-devel-6.2.8.0-15.el5_8
    6. Imagemagick-6.2.8.0-15.el5_8
    7. Imagemagick-devel-6.2.8.0-15.el5_8
    8. Imagemagick-6.2.8.0-15.el5_8
Copy Code

Uninstall: Yum Erase ImageMagick or yum remove ImageMagick.

2. Install the base library

    1. Yum install Libtool-ltdl libtool-ltdl-devel freetype freetype-devel fontconfig-devel
    2. wget http://centos.ustc.edu.cn/epel/5/x86_64/epel-release-5-4.noarch.rpm
    3. RPM-UVH epel-release-5-4.noarch.rpm
    4. Yum--enablerepo=epel install Jasper Jasper-libs jasper-devel
Copy Code

3, Installation imagemagick-6.8.0-0.x86_64.rpm

Download Address: Http://www.imagemagick.org/script/binary-releases.php#unix

    1. wget ftp://ftp.imagemagick.org/pub/ImageMagick/linux/CentOS/x86_64/ImageMagick-6.8.0-0.x86_64.rpm

    2. wget ftp://ftp.imagemagick.org/pub/ImageMagick/linux/CentOS/x86_64/ImageMagick-devel-6.8.0-0.x86_64.rpm

    3. RPM-UVH imagemagick-6.8.0-0.x86_64.rpm

Copy Code

Error occurred:

    1. Yum Install--nogpgcheck imagemagick-6.8.0-0.x86_64.rpm
Copy Code

4. Test the installation result

    1. [Root@jbxue soft]# Convert--version

    2. Version:imagemagick 6.8.0-0 2012-10-11 Q16 http://www.imagemagick.org

    3. Copyright:copyright (C) 1999-2012 ImageMagick Studio LLC
    4. Features:openmp

Copy Code

Third, reference http://www.imagemagick.org/script/download.phphttp://www.imagemagick.org/script/index.php

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.