PHP MongoDB Driver

Source: Internet
Author: User
Tags mongodb driver php mongodb git clone




Sometimes installing some things will always encounter some problems, the problem is not big, recorded, is also a practical experience it.





git clone https://github.com/mongodb/mongo-php-driver.git CD directory Phpize
Found an error Configuring for:PHP Api Version: 20121113Zend Module Api No: 20121212Zend Extension Api No: 220121212/usr/bin/m4:config.m4:364: cannot open `src/libmongoc/build/autotools/m4/ax_prototype.m4 ': No such file or directory/usr/bin/m4:config.m4:365: cannot open `src/libmongoc/build/autotools/CheckCompiler.m4': No such file or directory/usr/bin/m4:config. M4:366: cannot open `src/libmongoc/build/autotools/WeakSymbols.m4': No such file or directory/usr/bin/m4:config.m4:367: cannot open `src/libmongoc/build/autotools/m4 /ax_pthread.m4': No such file or directory/usr/bin/m4:config.m4:399: cannot open `src/libbson/build/autotools/CheckAtomics.m4': No such file or directory/usr/bin/ M4:config.m4:400: cannot open `src/libbson/build/autotools/FindDependencies.m4': No such file or directory/usr/bin/m4:config.m4:401: cannot open `src/libbson/build /autotools/m4/ac_compile_check_sizeof.m4': No such file or directory/usr/bin/m4:config.m4:402: cannot open `src/libbson/build/au Totools/m4/ac_create_stdint_h.m4': No such file or directory/usr/bin/m4:config.m4:444: cannot open `src/libmongoc/build/autotools/Versions.m4': No such file or directory/usr /bin/m4:config.m4:458: cannot open `src/libbson/build/autotools/Versions.m4': No such file or directoryautom4te: /usr/bin/m4 failed with exit status: 1








That's the way it's supposed to be. Configuring for:php API Version:20121113zend Module API no:20121212zend Extension API no:220121212



After query, found missing things, install.








git submodule sync && git submodule update --init
Reinstall the extension:
phpize --cleanphpize
yum install cyrus-sasl-devel
./configure$ make install

Modify PHP.ini Add 
Extension=Mongo.     so

PHP MongoDB Driver


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.