我已经用pecl安装了php mongodb驱动程序但是当我尝试启动Lampp时我得到了:
XAMPP目前仅作为32位应用程序使用。请为您的系统使用32位兼容性库。
pecl install mongodb似乎运行正常 ...
void List::insertBack(ListItemType newItem)
{
ListNode *p;
ListNode *q;
if (head == NULL)
{
p = new ListNode;
p -> item = newItem;
p -> next = head;
head = p;
}
else
{
p = new ListNode;
q -> next = p;
q = head;
while (q-> next != NULL)
{
q = q->next;
};
p -> item = newItem;
p -> next = NULL;
}
}
我在/opt/lampp/etc/php.ini
中添加了Build process completed successfully
Installing '/opt/lampp/lib/php/extensions/no-debug-non-zts-20151012/mongodb.so'
install ok: channel://pecl.php.net/mongodb-1.1.9
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongodb.so" to php.ini
配置
extension=mongodb.so
我该如何解决?