Call to undefined function think\captcha\imagettftext()
百度了一下,缺少 freetype,
1. 从 https://download.savannah.gnu.org/releases/freetype/
下载 最新版的,然后解压。
freetype-config --prefix
看到 prefix
./configure --prefix=/usr/local/opt/freetype
make && make install
cd /Applications/mdserver/source/php/php74/ext/gd
./configure --with-php-config=/Applications/mdserver/bin/php/php74/bin/php-config --with-jpeg=/usr/include --with-freetype=/usr/local/opt/freetype2/