<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/mysql-xdevapi.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'mysql-xdevapi.installation.php',
    1 => 'Installation',
    2 => 'Installation',
  ),
  'up' => 
  array (
    0 => 'mysql-xdevapi.setup.php',
    1 => 'Installation/Konfiguration',
  ),
  'prev' => 
  array (
    0 => 'mysql-xdevapi.requirements.php',
    1 => 'Anforderungen',
  ),
  'next' => 
  array (
    0 => 'mysql-xdevapi.configuration.php',
    1 => 'Laufzeit-Konfiguration',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/mysql_xdevapi/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysql-xdevapi.installation" class="section">
  <h2 class="title">Installation</h2>

  <p class="para">
   Diese <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a>-Erweiterung ist nicht Teil von PHP.
  </p>

  <p class="para">
   Ein Beispiel für die Installation auf Ubuntu 18.04 mit PHP 7.2:
  </p>
  <div class="example-contents">
<div class="cdata"><pre>
// Abhängigkeiten
$ apt install build-essential libprotobuf-dev libboost-dev openssl protobuf-compiler liblz4-tool zstd

// PHP mit den gewünschten Erweiterungen; php7.2-dev wird zum Kompilieren benötigt
$ apt install php7.2-cli php7.2-dev php7.2-mysql php7.2-pdo php7.2-xml

// Kompilieren der Erweiterung
$ pecl install mysql_xdevapi
</pre></div>
  </div>


  <p class="para">
   Der Befehl <code class="literal">pecl install</code> aktiviert keine
   PHP-Erweiterungen (standardmäßig). Die Aktivierung kann auf verschiedene
   Arten erfolgen. Hier ein weiteres Beispiel für PHP 7.2 auf Ubuntu 18.04:
  </p>

  <div class="example-contents">
<div class="cdata"><pre>
// Eine eigene ini-Datei erstellen
$ echo &quot;extension=mysql_xdevapi.so&quot; &gt; /etc/php/7.2/mods-available/mysql_xdevapi.ini

// Den Befehl &#039;phpenmod&#039; verwenden (Achtung: ist Debian/Ubuntu-spezifisch)
$ phpenmod -v 7.2 -s ALL mysql_xdevapi

// Alternativ zu &#039;phpenmod&#039; kann der Symlink auch manuell gesetzt werden
// $ ln -s /etc/php/7.2/mods-available/mysql_xdevapi.ini /etc/php/7.2/cli/conf.d/20-mysql_xdevapi.ini

// Schauen wir uns an, welche MySQL-Erweiterungen nun aktiviert sind
$ php -m |grep mysql

mysql_xdevapi
mysqli
mysqlnd
pdo_mysql
</pre></div>
  </div>


  <p class="para">
   Information zur Installation dieser PECL-Erweiterung
finden sie im Kapitel <a href="install.pecl.php" class="link">Installation von PECL-Erweiterungen</a>.
Zusätzliche Informationen wie neue Releases, Downloads,
Quelldateien, Maintainerinformation und ein CHANGELOG finden Sie hier: 
   <a href="https://pecl.php.net/package/mysql_xdevapi" class="link external">&raquo;&nbsp;https://pecl.php.net/package/mysql_xdevapi</a>.
  </p>
 </div><?php manual_footer($setup); ?>