【发布时间】: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.2 和 Can'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