mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Suggest pkg-config if MongoDB cannot find OpenSSL
https://jira.mongodb.org/browse/PHPC-674 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340672 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
245a0e29a8
commit
9c7c9d9f1b
1 changed files with 26 additions and 0 deletions
|
@ -22,6 +22,19 @@ $ sudo pecl install mongodb
|
|||
</programlisting>
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<simpara>
|
||||
Installing the driver via PECL will use bundled versions of
|
||||
<link xlink:href="&url.mongodb.libbson;">libbson</link> and
|
||||
<link xlink:href="&url.mongodb.libbson;">libmongoc</link> and rely on PHP to
|
||||
find OpenSSL (i.e. <literal>PHP_SETUP_OPENSSL</literal>). If the build
|
||||
process fails to find OpenSSL, check that the OpenSSL development package
|
||||
(e.g. <literal>libssl-dev</literal>) and
|
||||
<link xlink:href="&url.mongodb.wiki.pkg-config;">pkg-config</link> are both
|
||||
installed.
|
||||
</simpara>
|
||||
</note>
|
||||
|
||||
<para>
|
||||
Add the following line to your &php.ini; file:
|
||||
<programlisting role="ini">
|
||||
|
@ -100,6 +113,19 @@ $ sudo make install
|
|||
</programlisting>
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<simpara>
|
||||
By default, the driver will use bundled versions of
|
||||
<link xlink:href="&url.mongodb.libbson;">libbson</link> and
|
||||
<link xlink:href="&url.mongodb.libbson;">libmongoc</link> and rely on PHP to
|
||||
find OpenSSL (i.e. <literal>PHP_SETUP_OPENSSL</literal>). If the build
|
||||
process fails to find OpenSSL, check that the OpenSSL development package
|
||||
(e.g. <literal>libssl-dev</literal>) and
|
||||
<link xlink:href="&url.mongodb.wiki.pkg-config;">pkg-config</link> are both
|
||||
installed.
|
||||
</simpara>
|
||||
</note>
|
||||
|
||||
<para>
|
||||
The last step will report where <filename>mongodb.so</filename> has been
|
||||
installed, similar to:
|
||||
|
|
Loading…
Reference in a new issue