Bash

如何使用 bash 在 centos 5.8 64bit 上安裝最新版本的 imagick

  • April 27, 2015

如何使用 bash for php 5.4 在 centos 5.8 64bit 上下載和安裝最新版本的 imagick。

>yum info php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.ellogroup.com
* epel: mirror01.th.ifl.net
* extras: mirror.ellogroup.com
* updates: mirror.ellogroup.com
Installed Packages
Name       : php
Arch       : x86_64
Version    : 5.4.3
Release    : 1.el5.remi
Size       : 8.8 M
Repo       : installed
Summary    : The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
URL        : http://www.php.net/
License    : PHP
Description: PHP is an HTML-embedded scripting language. PHP attempts to make it
          : easy for developers to write dynamically generated webpages. PHP also
          : offers built-in database integration for several commercial and
          : non-commercial database management systems, so writing a
          : database-enabled webpage with PHP is fairly simple. The most common
          : use of PHP coding is probably as a replacement for CGI scripts.
          :
          : The php package contains the module which adds support for the PHP
          : language to Apache HTTP Server.

您對 ImageMagick 有特定的版本要求嗎?

ImageMagick 是發行版的一部分,因此yum install ImageMagick.x86_64將下載 ImageMagick。

如果你有 php 5.4,那不是 CentOS 5.8 的一部分,所以請檢查它的來源yum info php

要安裝 PHP 支持,

yum install ImageMagick
yum install ImageMagick-devel
pecl install imagick
yum install ImageMagick
yum install ImageMagick-devel
yum --enablerepo=remi-test install php-devel
yum --enablerepo=remi install ImageMagick2
yum --enablerepo=remi-test install php-pecl-imagick

pkgs.org這是查找任何軟體包並安裝它的絕佳站點。

引用自:https://serverfault.com/questions/397913