简体   繁体   English

在 Ubuntu 14.04.2 LTS 和 php 7.1 上安装 php-imap

[英]Install php-imap on Ubuntu 14.04.2 LTS with php 7.1

Ive tried adding the ppa:ondrej/php repository and installing but im still getting this error.我尝试添加ppa:ondrej/php存储库并安装,但我仍然收到此错误。

sudo apt-get install php7.1-imap

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php7.1-imap
E: Couldn't find any package by regex 'php7.1-imap' 

Its missing from this: apt-cache search php7.1缺少它: apt-cache search php7.1

php7.1-cli - command-line interpreter for the PHP scripting language
php7.1-readline - readline module for PHP
php7.1-opcache - Zend OpCache module for PHP
php7.1-mysql - MySQL module for PHP
php7.1-zip - Zip module for PHP
php7.1-mbstring - MBSTRING module for PHP
php7.1-json - JSON module for PHP
php7.1-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP
php7.1 - server-side, HTML-embedded scripting language (metapackage)
php7.1-gd - GD module for PHP
php7.1-curl - CURL module for PHP
libapache2-mod-php7.1 - server-side, HTML-embedded scripting language (Apache 2 module)
php7.1-common - documentation, examples and common module for PHP

Ubuntu 14.04 is not longer supported by most PPA because its reached its end of life.大多数 PPA 不再支持 Ubuntu 14.04,因为它已达到使用寿命。

Use a newer ubuntu version, like 20.04 LTS.使用更新的 ubuntu 版本,例如 20.04 LTS。 Also php7.1 has already reached end of life too. php7.1 也已经到了生命的尽头。 We already reached php8 now.我们现在已经达到了 php8。

I recommend that you learn docker and refactor your code / install your app for php7.4 or php8 (whichever works with php imap) and ubuntu 20.04.我建议您学习 docker 并重构您的代码/为 php7.4 或 php8 安装您的应用程序(以 php imap 和 ubuntu 为准)。 I know, its a lot of work but its either this or get left in the dust:/我知道,它的工作量很大,但要么是这个,要么被丢在尘埃中:/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM