標籤:tle dir date print span for api tar check
有時候安裝一些東西總是會遇到一些問題,問題不大,記錄下來,也算是實踐心得吧。
git clone https://github.com/mongodb/mongo-php-driver.git cd 目錄phpize
發現出現報錯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/autotools/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
應該是是這樣才對。Configuring for:PHP Api Version: 20121113Zend Module Api No: 20121212Zend Extension Api No: 220121212
經過查詢,發現缺少東西,安裝。
git submodule sync && git submodule update --init
重新安裝擴充:
phpize --cleanphpize
yum install cyrus-sasl-devel
$ ./configure$ make install
修改php.ini添加
extension=mongo.so
php mongodb driver