Bug #80134 [Nab->]: compile failure

From: Date: Wed, 23 Sep 2020 02:38:45 +0000
Subject: Bug #80134 [Nab->]: compile failure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229157@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80134&edit=1

 ID:                 80134
 User updated by:    823688826 at qq dot com
 Reported by:        823688826 at qq dot com
 Summary:            compile failure
-Status:             Not a bug
+Status:             不是错误
 Type:               Bug
 Package:            Compile Failure
 Operating System:   ubuntu
 PHP Version:        7.3Git-2020-09-22 (Git)
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

ok, thank you


Previous Comments:
------------------------------------------------------------------------
[2020-09-22 16:33:08] cmb@php.net

Prior to PHP 7.4.0, building ext/gd with the bundled libgd
requires freetype-config.  If you're using a new version of
libfreetype, freetype-config may be missing.  In this case you
have the following options:

* build without freetype support: --without-freetype-dir
* build ext/gd against an external libgd: --with-gd=/path/to/libgd
* use a libfreetype which ships freetype-config
* patch ext/gd/config.m4 according to your needs
* use PHP 7.4

------------------------------------------------------------------------
[2020-09-22 15:54:49] danack@php.net

"configure: error: freetype-config not found."

It's looking for freetype-config and not finding it.

------------------------------------------------------------------------
[2020-09-22 15:47:09] 823688826 at qq dot com

Description:
------------
php version 7.3.6
checking for GD support... yes
checking for the location of libwebp... no
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... shared
checking for FreeType 2... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-webp-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
configure: error: freetype-config not found.


Test script:
---------------
./configure --prefix=/opt/php7.3 --with-config-file-path=/opt/php7.3/etc
--with-config-file-scan-dir=/opt/php7.3/etc.d --enable-fpm --disable-ipv6 --with-libxml-dir
--with-openssl=/opt/openssl/ --with-pcre-regex --with-zlib --enable-bcmath --with-bz2
--enable-calendar --with-curl=shared --enable-dba=shared --enable-exif=shared --with-gd
--with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir=shared --with-freetype-dir
--with-gettext --with-mhash --with-kerberos --enable-mbstring --with-mysqli=mysqlnd --enable-opcache
--enable-pcntl --with-pdo-mysql=mysqlnd --with-readline --enable-shmop --enable-soap
--enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-zip --enable-mysqlnd
--enable-maintainer-zts



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80134&edit=1


Thread (5 messages)

« previous php.bugs (#229157) next »