ImageMagick installation instructions (required for Beginners)

Source: Internet
Author: User
ImageMagick installation instructions (required for Beginners)

  1. Tar-xzvf tiff-3.8.0.tar.gz
  2. Cd tiff-3.8.0
  3. ./Configure
  4. Make
  5. Make install

After the installation is complete, process the image in the command line and report the following error: libtiff. so.3: cannot open shared object file: No such file or directory. this module is also unavailable and may not be installed.

3. install the jasper package: http://www.ece.uvic.ca /~ After mdadams/jasper/is installed, you can process the image in the. jp2. j2c format (the file extension is. jp2. j2c)

  1. Unzip jasper-1.900.1.zip
  2. Cdjasper-1.900.1
  3. CFLAGS =-fPIC./configure
  4. Make CFLAGS =-fPIC
  5. Make CFLAGS =-fPIC install

4. install jpeg package: http://www.ijg.org/files/jpegsrc.v6b.tar.gz

  1. # Install jpeg
  2. Cd/disk/src
  3. Tar-xzf ../soft/jpegsrc.v6b.tar.gz
  4. Cd jpeg-6b/
  5. ./Configure
  6. Make & make install

5. install zlib 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 zlib-1.2.7
  4. ./Configure
  5. Make & make install

6. install png: 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

7. install freetype: 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

8. install ImageMagick

  1. # Declaring a 64-bit environment

  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

Solution: usr/bin/ld: cannot find Solution 2. binary RPM installation

1. uninstall and install:

  1. Yum install ImageMagick-devel

If it has been installed, run the following uninstall command first. I have installed version 6.2.8, 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

Uninstall: yum erase ImageMagick or yum remove ImageMagick.

2. install the basic Library

  1. Yum install libtool-ltdl-devel 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-libs jasper-devel

3. install ImageMagick-6.8.0-0.x86_64.rpm

: 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

Error:

  1. Yum install -- nogpgcheck ImageMagick-6.8.0-0.x86_64.rpm

4. Check installation results

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

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

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

3. 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.