Bug #79135 [Com]: checking whether to build with LIBXML support... yes checking for libxml-2.0 >=
| From: | bugreports at gmail dot com | Date: | Fri, 17 Jan 2020 10:41:44 +0000 |
| Subject: | Bug #79135 [Com]: checking whether to build with LIBXML support... yes checking for libxml-2.0 >= | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224954@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79135&edit=1
ID: 79135
Comment by: bugreports at gmail dot com
Reported by: 823688826 at qq dot com
Summary: checking whether to build with LIBXML support... yes
checking for libxml-2.0 >=
Status: ??
Type: Bug
Package: Compile Failure
Operating System: centos
PHP Version: 7.4.1
Block user comment: N
Private report: N
New Comment:
> But in 7.3, you can specify the directory
but 7.4 is not 7.3
7.4 relies on pkg-config
Previous Comments:
------------------------------------------------------------------------
[2020-01-17 10:10:26] 823688826 at qq dot com
But in 7.3, you can specify the directory
[root@c9dd73ba9bad php-7.3.6]# ./configure --help | grep libxml
--disable-libxml Disable LIBXML support
--with-libxml-dir=DIR LIBXML: libxml2 install prefix
--with-libxml-dir=DIR DOM: libxml2 install prefix
--with-libxml-dir=DIR SimpleXML: libxml2 install prefix
--with-libxml-dir=DIR SOAP: libxml2 install prefix
--with-libxml-dir=DIR WDDX: libxml2 install prefix
--with-libxml-dir=DIR XML: libxml2 install prefix
--with-libxml-dir=DIR XMLReader: libxml2 install prefix
--with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix
--with-libxml-dir=DIR XMLWriter: libxml2 install prefix
------------------------------------------------------------------------
[2020-01-17 10:07:27] nikic@php.net
As the error message indicates, you need to specify the libxml2 path using PKG_CONFIG_PATH. In your
case, this is likely possible using:
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/libxml2/lib/pkgconfig"
------------------------------------------------------------------------
[2020-01-17 10:04:45] 823688826 at qq dot com
[root@c9dd73ba9bad php-7.4.1]# ./configure --help | grep libxml
--without-libxml Build without LIBXML support
--with-expat XML: use expat instead of libxml2
--with-expat XMLRPC-EPI: use expat instead of libxml2
No configuration found in config
------------------------------------------------------------------------
[2020-01-17 10:02:45] 823688826 at qq dot com
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: Package requirements (libxml-2.0 >= 2.7.6) were not met:
Package 'libxml-2.0', required by 'virtual:world', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
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.
[root@c9dd73ba9bad php-7.4.1]# ./configure --prefix=/opt/php7.4/ --with-libxml-dir=/opt/libxml2
------------------------------------------------------------------------
[2020-01-17 09:34:28] nikic@php.net
Can you please explain in more detail what the issue is? Note that the option is called
--with-libxml, not --with-libxml2.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79135
--
Edit this bug report at https://bugs.php.net/bug.php?id=79135&edit=1