Amazon Linux 2 / Elastic Beanstalk上的PHP 8.1没有FreeType支持?

0

【以下的问题经过翻译处理】 我有一个在PHP 8.1上运行的Elastic Beanstalk应用程序。但是,即使我在EC2实例上安装了GD和libfreetype,也没有FreeType支持。我在网上找到的所有说明都说,您必须重新编译PHP并使用FreeType(--with-freetype)才能将其打开。显然,如果我可以避免这种情况,我不想在EB上安装不受支持的手工构建PHP。这就是使用Elastic Beanstalk的全部意义。

有谁能告诉我如何在Amazon Linux 2上添加支持FreeType的GD,而无需重新编译PHP 8.1?或者,AWS的任何人都可以确保将其添加到EB镜像中吗?这是一个重要的缺失功能。谢谢。

profile picture
EXPERT
asked 5 months ago24 views
1 Answer
0

【以下的回答经过翻译处理】 看起来AWS在Beanstalk平台v3.4.1中修复了这个问题。Beanstalk 的早期 php 版本已支持它,例如 Beanstalk 中的 php 8.0 确实包含 GD 和 FreeType:

php -i | grep -E "GD|FreeType"
GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.8.0
profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions