From: 565195693 at qq dot com
Operating system: macOS 10.13.6
PHP version: 7.4.10
Package: Compile Failure
Bug Type: Bug
Bug description:configure error
Description:
------------
./configure --prefix=/usr/local/webserver/php
--with-config-file-path=/usr/local/webserver/php/conf --enable-fpm
--enable-mbstring --enable-sockets --enable-redis --enable-swoole
--enable-gd --with-fpm-user=_www --with-fpm-group=_www --with-pdo-mysql
--with-mysqli --with-zip --with-openssl --with-external-pcre --with-curl
--with-zlib --with-jpeg --with-freetype --with-webp --with-sqlite3
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/devenv/openssl/lib/pkgconfig:/usr/local/devenv/freetype2/lib/pkgconfig:/usr/local/devenv/pcre2/lib/pkgconfig:/usr/local/devenv/libwebp/lib/pkgconfig:/usr/local/devenv/jpeg/lib/pkgconfig:/usr/local/devenv/libzip/lib/pkgconfig:/usr/local/devenv/libxml2/lib/pkgconfig
Test script:
---------------
â php-7.4.10 pkg-config --version
0.29.2
â php-7.4.10 echo $PKG_CONFIG
/usr/lib/pkgconfig:/usr/local/devenv/openssl/lib/pkgconfig:/usr/local/devenv/freetype2/lib/pkgconfig:/usr/local/devenv/pcre2/lib/pkgconfig:/usr/local/devenv/libwebp/lib/pkgconfig:/usr/local/devenv/jpeg/lib/pkgconfig:/usr/local/devenv/libzip/lib/pkgconfig:/usr/local/devenv/libxml2/lib/pkgconfig
â php-7.4.10 echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig:/usr/local/devenv/openssl/lib/pkgconfig:/usr/local/devenv/freetype2/lib/pkgconfig:/usr/local/devenv/pcre2/lib/pkgconfig:/usr/local/devenv/libwebp/lib/pkgconfig:/usr/local/devenv/jpeg/lib/pkgconfig:/usr/local/devenv/libzip/lib/pkgconfig:/usr/local/devenv/libxml2/lib/pkgconfig
â php-7.4.10
Expected result:
----------------
configure ok
Actual result:
--------------
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... x86_64-apple-darwin17.7.0
checking host system type... x86_64-apple-darwin17.7.0
checking target system type... x86_64-apple-darwin17.7.0
checking pkg-config is at least version 0.9.0... ./configure: line 4339:
/usr/lib/pkgconfig:/usr/local/devenv/openssl/lib/pkgconfig:/usr/local/devenv/freetype2/lib/pkgconfig:/usr/local/devenv/pcre2/lib/pkgconfig:/usr/local/devenv/libwebp/lib/pkgconfig:/usr/local/devenv/jpeg/lib/pkgconfig:/usr/local/devenv/libzip/lib/pkgconfig:/usr/local/devenv/libxml2/lib/pkgconfig:
No such file or directory
no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
ãããããããããããããããããããããããããããã
checking whether to enable IPv6 support... yes
checking whether to enable DTrace support... no
checking how big to make fd sets... using system default
Configuring extensions
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking for strtoll... yes
checking for atoll... yes
checking whether to build with LIBXML support... yes
checking for libxml-2.0 >= 2.7.6... no
configure: error: in `/Users/rehack/Downloads/php-7.4.10':
configure: error: The pkg-config script could not be found or is too
old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
--
Edit bug report at https://bugs.php.net/bug.php?id=80064&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80064&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80064&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80064&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80064&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80064&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80064&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80064&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80064&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80064&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80064&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80064&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80064&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80064&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80064&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80064&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80064&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80064&r=mysqlcfg