Home >Backend Development >PHP Tutorial >PECL source code compilation and installation

PECL source code compilation and installation

WBOY
WBOYOriginal
2016-08-08 09:21:021672browse

Find the extension source code to download at https://pecl.php.net/,
Here we take the MongodB extension as an example.

Download the mongodb database driver source code at https://pecl.php.net/package/mongo. Then compile and install.

<code>wget -c https://pecl<span>.php</span><span>.net</span>/get/mongo-<span>1.6</span><span>.10</span><span>.tgz</span>
tar zxvf mongo-<span>1.6</span><span>.10</span><span>.tgz</span>
cd mongo-<span>1.6</span><span>.10</span>phpize --clean
phpize
./configure
make
make install</code>

Copyright Statement: This article is the original article of the blogger and may not be reproduced without the permission of the blogger.

The above introduces the PECL source code compilation and installation, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn