Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.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.3.3-7安装imap扩展+;挤压17_Php_Debian_Imap_Php Extension_Apt Get - Fatal编程技术网

为PHP5.3.3-7安装imap扩展+;挤压17

为PHP5.3.3-7安装imap扩展+;挤压17,php,debian,imap,php-extension,apt-get,Php,Debian,Imap,Php Extension,Apt Get,服务器安装了debian wheezy操作系统。Php版本为php5.3: user@example:~# php -v PHP 5.3.3-7+squeeze17 with Suhosin-Patch (cli) (built: Aug 23 2013 15:06:16) 我尝试通过apt get安装imap扩展,结果是: user@example:~# apt-get install php5-imap=5.3.3-7+squeeze17 Reading package lists.

服务器安装了debian wheezy操作系统。Php版本为php5.3:

 user@example:~# php -v
 PHP 5.3.3-7+squeeze17 with Suhosin-Patch (cli) (built: Aug 23 2013 15:06:16) 
我尝试通过apt get安装imap扩展,结果是:

user@example:~# apt-get install php5-imap=5.3.3-7+squeeze17
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '5.3.3-7+squeeze17' for 'php5-imap' was not found
当我尝试其他版本时,我得到:

user@example:~# apt-get install php5-imap=5.3.3-7+squeeze19
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php5-imap : Depends: php5-common (= 5.3.3-7+squeeze19) but 5.3.3-7+squeeze17 is to be installed
E: Unable to correct problems, you have held broken packages.
有人知道在这种情况下安装php5 imap最安全的方法吗?
另外,从wheezy repo更新到5.4不是解决方案:(

我通过调用外部python脚本解决了这个问题,该脚本使用imaplib()。 从php调用python的示例:

 <? exec("python <ABSOLUTE_PATH_TO_SCRIPT>.py " . escapeshellarg($arg1));