Azure App Service Linux PHP - How to add “--with-freetype-dir=/usr/lib/x86_64-linux-gnu” to “./configure”?
问题 I'm trying to install Magento on Azure Linux App Service (PHP 7.3-apache) and I ran into this error: Image CAPTCHA requires FT fonts support Apparently the libfreetype6-dev despite being installed in the underlying container (at /usr/lib/x86_64-linux-gnu ) are not loaded by PHP. Basically, the solution proposed by the other StackOverflow answer is to reconfigure and recompile PHP. To reconfigure you must run the ./configure command with the flag --with-freetype-dir=/usr/lib/x86_64-linux-gnu .