如何使用 php 5.4 的 bash 在 centos 5.8 64 位上下载并安装最新版本的 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.
答案1
您对 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
答案2
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这是一个查找任何软件包并进行安装的绝佳网站。