Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
330 views
in Technique[技术] by (71.8m points)

I can not install php with freetype support [Ubuntu]

I am trying to install php from source again and I have done it several times by now. I really need freetype support, and when I try to compile php everything is alright except for the freetype.

PHP VERSION: 8.0.1

Error: configure: WARNING: unrecognized options: --with-freetype-dir

terminal command:

sudo ./configure --prefix=/usr/local/php --with-mysqli=mysqlnd  --with-apxs2=/usr/local/apache2/bin/apxs --with-jpeg --with-zlib --with-kerberos --enable-gd   --with-freetype-dir=/usr/local/freetype2/ --with-freetype 
question from:https://stackoverflow.com/questions/66055017/i-can-not-install-php-with-freetype-support-ubuntu

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

From the manual

To enable support for FreeType 2 add --with-freetype-dir=DIR. As of PHP 7.4.0 use --with-freetype instead, which relies on pkg-config.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...