2013-10-11 21 views
0

我試圖在我的Ubuntu 12.04服務器上安裝imagemagick。安裝php5-imagick for PHP 5.4.17-1〜精確+ 1

我的PHP版本是PHP 5.4.17-1〜精確+ 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 

試過安裝PHP5-imagick = 3.1.0〜rc1-1

但它說

php5-imagick : Depends: phpapi-20090626 which is a virtual package.

我該怎麼辦?

感謝

+4

這是更好的問http://askubuntu.com –

回答

1

添加this 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