编译时无法识别的选项 PHP 8: --with-gd --enable-gd-native-ttf
Unrecognized options when compiling PHP 8: --with-gd --enable-gd-native-ttf
我正在尝试使用 GD 函数:imagettfbbox()
,但它未定义。自从我在 Ubuntu 21.10.
上以来,我已经编译了自己的 PHP 版本并支持 argon2
我是这样配置的:
./configure --with-password-argon2 --with-jpeg --with-freetype --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-mbstring --enable-shmop --enable-sigchild --enable-soap --enable-sockets --enable-sysvmsg --enable-gd-native-ttf --with-gd --with-curl --with-gettext --with-openssl --with-pdo-mysql --with-zlib
如上所述,我终于找到了我需要的所有 ./configure 选项。但是,--with-gd
和 --enable-gd-native-ttf
无法识别,不会与我的构建集成。 我如何访问上述功能? 我找不到关于这个主题的任何最新信息(过去 10 年),因为 --with-gd 似乎在 php 7.2。我正在构建最新版本 (PHP 8.2-dev)。提前致谢
--enable-gd-native-ttf
根据图像文档已弃用:
To enable support for native TrueType string function add --enable-gd-native-ttf. (This option has no effect and has been removed as of PHP 7.2.0.)
另外 --with-gd
被替换为 --enable-gd
。
我正在尝试使用 GD 函数:imagettfbbox()
,但它未定义。自从我在 Ubuntu 21.10.
我是这样配置的:
./configure --with-password-argon2 --with-jpeg --with-freetype --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-mbstring --enable-shmop --enable-sigchild --enable-soap --enable-sockets --enable-sysvmsg --enable-gd-native-ttf --with-gd --with-curl --with-gettext --with-openssl --with-pdo-mysql --with-zlib
如上所述,我终于找到了我需要的所有 ./configure 选项。但是,--with-gd
和 --enable-gd-native-ttf
无法识别,不会与我的构建集成。 我如何访问上述功能? 我找不到关于这个主题的任何最新信息(过去 10 年),因为 --with-gd 似乎在 php 7.2。我正在构建最新版本 (PHP 8.2-dev)。提前致谢
--enable-gd-native-ttf
根据图像文档已弃用:
To enable support for native TrueType string function add --enable-gd-native-ttf. (This option has no effect and has been removed as of PHP 7.2.0.)
另外 --with-gd
被替换为 --enable-gd
。