【问题标题】:When installing php7.3-intl on debian docker gives error "has no installation candidate"在 debian docker 上安装 php7.3-intl 时出现错误“没有安装候选者”
【发布时间】:2020-03-27 20:25:09
【问题描述】:

我通过 docker-compose 安装了 wordpress。它使用php7.3(我检查了版本)。现在问题是这样的:一个wp函数使用Locale类->需要启用php_intl(在php.ini中找不到)->试图安装php7.3-intl->给出错误

Package php7.3-intl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php7.3-intl' has no installation candidate

我尝试了这些网站中提到的解决方案:https://computingforgeeks.com/how-to-install-php-7-3-on-debian-9-debian-8/https://ayesh.me/Ubuntu-PHP-7.2Can't get to install 'intl' extension for php on debian。最后以最后一个链接的这个错误结束:

/tmp/pear/temp/intl/intl_error.h:24:10: fatal error: ext/standard/php_smart_str.h: No such file or directory

我试过nano /tmp/pear/temp/intl/intl_error.h,但路径不存在。另外,当被问到Specify where ICU libraries and headers can be found [DEFAULT] 我只是按回车键。

接下来我该怎么做,或者有没有更好的方法来解决我原来的问题?

【问题讨论】:

    标签: php docker debian intl php-7.3


    【解决方案1】:

    我遇到了同样的问题,我解决了在容器中运行这个命令:

    docker-php-ext-install intl
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-08
      • 2021-12-19
      • 2015-07-26
      相关资源
      最近更新 更多