DEV Community

Discussion on: Growing the PHP Core—One Test at a Time

Collapse
 
agustingomes profile image
Agustin Gomes

I got stuck at libxml, tried to use --with-zlib but it didn't work for me

configure: error: Package requirements (libxml-2.0 >= 2.9.0) 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.
Enter fullscreen mode Exit fullscreen mode

Do I need to do something else specific to that?

Apart from it, it's a nice guide, and it has motivated me to try it out to potentially contribute in the future.

Collapse
 
realflowcontrol profile image
Florian Engelhardt • Edited

Hey Agustin,

this looks like the libxml header files are not installed.

apt-get install libxml2-dev # for Debian based
# or
yum install libxml2-devel # for Fedora based
Enter fullscreen mode Exit fullscreen mode

This should install the needed header files to compile PHP. Additionally I could find this Stack Overflow Thread on the topic.

Let me know if this helped you!

Happy coding
Florian