search
HomeBackend DevelopmentPHP TutorialImageMagick installation instructions (necessary for newbies)

+ 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
PHP Performance Tuning for High Traffic WebsitesPHP Performance Tuning for High Traffic WebsitesMay 14, 2025 am 12:13 AM

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

Dependency Injection in PHP: Code Examples for BeginnersDependency Injection in PHP: Code Examples for BeginnersMay 14, 2025 am 12:08 AM

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

PHP Performance: is it possible to optimize the application?PHP Performance: is it possible to optimize the application?May 14, 2025 am 12:04 AM

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

PHP Performance Optimization: The Ultimate GuidePHP Performance Optimization: The Ultimate GuideMay 14, 2025 am 12:02 AM

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

PHP Dependency Injection Container: A Quick StartPHP Dependency Injection Container: A Quick StartMay 13, 2025 am 12:11 AM

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Dependency Injection vs. Service Locator in PHPDependency Injection vs. Service Locator in PHPMay 13, 2025 am 12:10 AM

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHP performance optimization strategies.PHP performance optimization strategies.May 13, 2025 am 12:06 AM

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHP Email Validation: Ensuring Emails Are Sent CorrectlyPHP Email Validation: Ensuring Emails Are Sent CorrectlyMay 13, 2025 am 12:06 AM

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool