php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80064 configure error
Submitted: 2020-09-06 04:43 UTC Modified: 2020-09-20 04:22 UTC
From: 565195693 at qq dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 7.4.10 OS: macOS 10.13.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: 565195693 at qq dot com
New email:
PHP Version: OS:

 

 [2020-09-06 04:43 UTC] 565195693 at qq dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-09-08 08:33 UTC] nikic@php.net
-Status: Open +Status: Feedback
 [2020-09-08 08:33 UTC] nikic@php.net
➜  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

It looks like you mixed up PKG_CONFIG and PKG_CONFIG_PATH. If you set PKG_CONFIG (usually not needed) then it should be the path to the pkg-config binary itself. So something like PKG_CONFIG=/usr/bin/pkg-config.
 [2020-09-20 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC