简体   繁体   English

链接到使用php 5.4编译的mongo.so 1.4 php驱动程序

[英]Link to mongo.so 1.4 php driver compiled with php 5.4

Can anyone point me to a site where i can download the Mongo DB v1.4 precompiled PHP Driver? 谁能指出我可以下载Mongo DB v1.4预编译PHP驱动程序的网站? I am running XAMPP and for the life of me can't compile the source with anything but PHP 5.3(version of php that came with my mac OS) is there anyone that has the precompiled v1.4 mongo.so file that has been compiled with PHP 5.4 that can share it? 我正在运行XAMPP,但对我而言,我无法使用PHP 5.3(我的Mac OS附带的php版本)编译源代码,那里有人已经预编译了v1.4 mongo.so文件。与PHP 5.4可以共享吗? Thanks in advance for your help. 在此先感谢您的帮助。

You need to use the "pecl" tool that came with your XAMPP installation. 您需要使用XAMPP安装随附的“ pecl”工具。

I believe it is installed into /Applications/XAMPP/xamppfiles/bin/pecl . 我相信它已安装到/ Applications / XAMPP / xamppfiles / bin / pecl中。

So, you'll have to run: 因此,您必须运行:

/Applications/XAMPP/xamppfiles/bin/pecl install mongo

To install the driver. 要安装驱动程序。

You'll then have to edit the XAMPP php.ini file, which I believe is /Applications/XAMPP/etc/php.ini (you should confirm with your phpinfo() output). 然后,您必须编辑XAMPP php.ini文件,我相信该文件是/Applications/XAMPP/etc/php.ini(您应使用phpinfo()输出进行确认)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM