<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/libxml.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'libxml.installation.php',
    1 => 'Installation for PHP versions &gt;= 7.4',
    2 => 'Installation for PHP versions &gt;= 7.4',
  ),
  'up' => 
  array (
    0 => 'libxml.setup.php',
    1 => 'Installing/Configuring',
  ),
  'prev' => 
  array (
    0 => 'libxml.requirements.php',
    1 => 'Requirements',
  ),
  'next' => 
  array (
    0 => 'libxml.installation_old.php',
    1 => 'Installation for PHP versions &lt; 7.4',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/libxml/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="libxml.installation" class="section">
  <h2 class="title">Installation for PHP versions &gt;= 7.4</h2>
  <p class="para">
   The libxml extension is enabled by default, although it may be disabled with
   <strong class="option configure">--without-libxml</strong>.
  </p>
  <p class="para">
   PHP uses <code class="literal">pkg-config</code> to select the right library file, header files,
   and compile flags to use for libxml2.
   To ensure that the desired version of libxml2 is selected,
   the <var class="envar">PKG_CONFIG_PATH</var> environment variable may
   be used to control the search path for <code class="literal">pkg-config</code> prior to running the configure script:
   <div class="annotation-interactive cdata"><pre>PKG_CONFIG_PATH=&quot;/path/to/libxml2/prefix/lib/pkgconfig:/lib/pkgconfig&quot;</pre></div>
  </p>
 </div><?php manual_footer($setup); ?>