如果gd库中没有freeType,则按照以下步骤进行:
docker-php-ext-configure gd --enable-gd-native-ttf --with-freetype-dir=/usr/include/freetype2 --with-png-dir=/usr/include
重新编译:
docker-php-ext-install gd
如果报错:
configure: error: ![freetype][1]-config not found.
运行: apt-get -y install libfreetype6-dev ,然后再继续运行上面的命令。
gd库中有了freetype,则验证码显示正常了
上一篇: flutter run 卡在Resolving dependencies...处理方法 下一篇: nextcloud安装后登录跳回登录页问题解决