Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装php5 imagick for php5.4.17-1~Precision+;1._Php_Apache2_Dependencies - Fatal编程技术网

安装php5 imagick for php5.4.17-1~Precision+;1.

安装php5 imagick for php5.4.17-1~Precision+;1.,php,apache2,dependencies,Php,Apache2,Dependencies,我正在尝试在我的ubuntu 12.04服务器上安装imagemagick 我的php版本是PHP5.4.17-1~precise+1 并安装imagemagick版本:8:6.6.9.7-5ubuntu3.2 但安装php5 imagick会影响我的php5版本,我认为: The following NEW packages will be installed: libjson-c2{a} php5-json{a} The following packages will be upgra

我正在尝试在我的ubuntu 12.04服务器上安装imagemagick

我的php版本是PHP5.4.17-1~precise+1 并安装imagemagick版本:8:6.6.9.7-5ubuntu3.2

但安装php5 imagick会影响我的php5版本,我认为:

The following NEW packages will be installed: libjson-c2{a} php5-json{a} The following packages will be upgraded: php5-common php5-imagick 2 packages upgraded, 2 newly installed, 0 to remove and 97 not upgraded. Need to get 595 kB of archives. After unpacking 185 kB will be used. The following packages have unmet dependencies: libapache2-mod-php5 : Depends: php5-common (= 5.4.17-1~precise+1) but 5.5.4+dfsg-1+debphp.org~precise+1 is to be installed. php5-gd : Depends: php5-common (= 5.4.17-1~precise+1) but 5.5.4+dfsg-1+debphp.org~precise+1 is to be installed. php5-curl : Depends: php5-common (= 5.4.17-1~precise+1) but 5.5.4+dfsg-1+debphp.org~precise+1 is to be installed. php5-xmlrpc : Depends: php5-common (= 5.4.17-1~precise+1) but 5.5.4+dfsg-1+debphp.org~precise+1 is to be installed. php5-mcrypt : Depends: php5-common (= 5.4.17-1~precise+1) but 5.5.4+dfsg-1+debphp.org~precise+1 is to be installed. php5-mysql : Depends: php5-common (= 5.4.17-1~precise+1) but 5.5.4+dfsg-1+debphp.org~precise+1 is to be installed. php5-cli : Depends: php5-common (= 5.4.17-1~precise+1) but 5.5.4+dfsg-1+debphp.org~precise+1 is to be installed. The following actions will resolve these dependencies: Remove the following packages: 1) libapache2-mod-php5 2) php5 3) php5-cli 4) php5-curl 5) php5-gd 6) php5-mcrypt 7) php5-mysql 8) php5-xmlrpc 9) phpmyadmin Leave the following dependencies unresolved: 10) libapache2-mod-php5 recommends php5-cli 将安装以下新软件包: libjson-c2{a}php5 json{a} 以下软件包将升级: php5普通php5图像 升级了2个软件包,新安装了2个,要删除0个,未升级97个。 需要获得595 kB的档案。打开包装后,将使用185KB。 以下包具有未满足的依赖项: libapache2-mod-php5:dependens:php5-common(=5.4.17-1~精确+1),但需要安装5.5.4+dfsg-1+debphp.org~精确+1。 php5-gd:dependens:php5-common(=5.4.17-1~精确+1),但要安装5.5.4+dfsg-1+debphp.org~精确+1。 php5 curl:dependens:php5 common(=5.4.17-1~精确+1),但要安装5.5.4+dfsg-1+debphp.org~精确+1。 php5-xmlrpc:dependens:php5-common(=5.4.17-1~精确+1),但要安装5.5.4+dfsg-1+debphp.org~精确+1。 php5 mcrypt:dependens:php5 common(=5.4.17-1~精确+1),但要安装5.5.4+dfsg-1+debphp.org~精确+1。 php5-mysql:dependens:php5-common(=5.4.17-1~精确+1),但需要安装5.5.4+dfsg-1+debphp.org~精确+1。 php5 cli:dependens:php5 common(=5.4.17-1~precise+1),但要安装5.5.4+dfsg-1+debphp.org~precise+1。 以下操作将解决这些依赖关系: 删除以下软件包: 1) libapache2-mod-php5 2) php5 3) php5 cli 4) php5旋度 5) php5-gd 6) php5-mcrypt 7) php5-mysql 8) php5-xmlrpc 9) phpmyadmin 保留以下未解决的依赖项: 10) libapache2-mod-php5建议使用php5 cli 已尝试安装php5 imagick=3.1.0~rc1-1

但是它说

php5-imagick : Depends: phpapi-20090626 which is a virtual package. php5 imagick:依赖于:phpapi-20090626,它是一个虚拟包。 我该怎么办

谢谢

添加ppa ppa:ondrej/php5 oldstable

sudo apt-add-repository ppa:ondrej/php5-oldstable

sudo apt-get update

sudo apt-get install php5-dev

sudo pecl install imagick
这是最好的问题