Open woodongwong opened 5 years ago
FreeType从2.9.1开始,安装时freetype-config脚本是可选的,编译时可使用'--enable-freetype-config' 选项来安装freetype-config。
然而,Debian10取消了freetype-config,这使得PHP7.4之前的版本configure时无法找到freetype-config,解决方案有三个:
还有一点就是:PHP7.4开始,不要使用 --with-freetype-dir=DIR,而是使用--enable-freetype,因为改为依赖pkg-config了。
参考:
FreeType从2.9.1开始,安装时freetype-config脚本是可选的,编译时可使用'--enable-freetype-config' 选项来安装freetype-config。
然而,Debian10取消了freetype-config,这使得PHP7.4之前的版本configure时无法找到freetype-config,解决方案有三个:
还有一点就是:PHP7.4开始,不要使用 --with-freetype-dir=DIR,而是使用--enable-freetype,因为改为依赖pkg-config了。
参考: