debian — установить расширение imap для php 5.3.3-7 + squeeze17

На сервере установлен Debian Wheezy OS. Php версия php5.3:

 user@example:~# php -v
PHP 5.3.3-7+squeeze17 with Suhosin-Patch (cli) (built: Aug 23 2013 15:06:16)

Я пытаюсь установить расширение imap через apt-get и в результате:

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 в этом случае?
Постскриптум Обновление до 5.4 от wheezy repo не является решением 🙁

2

Решение

Я решил проблему с вызовом внешнего скрипта Python, который использует imaplib (http://pymotw.com/2/imaplib/).
Пример вызова python из php:

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

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector