Home  >  Article  >  Backend Development  >  ImageMagick installation instructions (necessary for newbies)

ImageMagick installation instructions (necessary for newbies)

WBOY
WBOYOriginal
2016-07-25 08:55:251215browse
+ Processing images, error: libtiff.so.3: cannot open shared object file: No such file or directory This module is not used and does not need to be installed.
3. Install jasper package: Download address: http://www.ece.uvic.ca/~mdadams/jasper/ Only JPEG2000 format images can be processed after installation (the file extension is .jp2 .j2c)
  1. unzip jasper-1.900.1.zip
  2. cd jasper-1.900.1
  3. CFLAGS=-fPIC ./configure
make CFLAGS=-fPIC
make CFLAGS=-fPIC install
Copy code

4. Install jpeg package Download address: 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
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
cp scripts/makefile.std makefile
makemake install

copy Code
    7. Install freetype download link: 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
make install
Copy code

8. Install ImageMagick
  1. #Declare 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/
./configure --with-quantum-depth=8 --enable-share --enable-static
make allmake install

/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread

/usr/bin/ld: cannot find -lltdl

collect2: ld returned 1 exit status

libtool: install: error: relink `magick/libMagickCore.la' with the above command before installing it
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/disk/src/ImageMagick-6.8.0-0'

    install: error: relink `magick/libMagickCore.la' with the above command before installing it

  1. /usr/bin/ld: cannot find -lltdl

  2. Copy code
  3. Solution: usr/bin/ld: cannot find error solution 2. Binary RPM installation
  4. 1. Uninstall first and then install Install:
  5. yum install ImageMagick ImageMagick-devel
Copy code
If it has been installed, execute the uninstall command below first. I have installed version 6.2.8, so I need to uninstall it first.

[root@jbxue soft]# convert --version
Version: ImageMagick 6.2.8 05/07/12 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
    Copyright : Copyright (C) 1999-2006 ImageMagick Studio LLC
  1. [root@jbxue soft]# rpm -qa| grep ImageMagick
  2. ImageMagick-devel-6.2.8.0-15.el5_8
ImageMagick-6.2.8.0-15.el5_8
ImageMagick- devel-6.2.8.0-15.el5_8ImageMagick-6.2.8.0-15.el5_8

Copy code

Uninstall: yum erase ImageMagick or yum remove ImageMagick.
  1. 2. Install basic libraries
  2. yum install libtool-ltdl libtool-ltdl-devel freetype freetype-devel fontconfig-devel
  3. wget http://centos.ustc.edu.cn/epel/5/x86_64/epel-release-5-4 .noarch.rpm
  4. rpm -Uvh epel-release-5-4.noarch.rpm
yum --enablerepo=epel install jasper jasper-libs jasper-devel
Copy code

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

An error occurred:

  1. yum install --nogpgcheck ImageMagick-6.8.0-0.x86_64.rpm
Copy the code

4. Check the installation results

  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

3. References http://www.imagemagick.org/script/download.php http://www.imagemagick.org/script/index.php



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn